|
Joined: Jan 2004
Posts: 20
User
|
User
Joined: Jan 2004
Posts: 20 |
I have already created a directory and CHMOD 777
I have also added the .mov , .mpg, etc extentions to the list of allowable file types -
It works with .jpg files and mp3's - BUT
When you try to attach a movie file it looks like it's uploading - then it gives this error
anyone else tried getting movies to upload?
|
|
|
|
Joined: Mar 2001
Posts: 644
Member
|
Member
Joined: Mar 2001
Posts: 644 |
You can specify the types of files to allow to be uploaded. In your admin section look for this: <br />If allowing file uploads you must specify which file types you want to allow (separate file types with a comma)<br />The following file types are not allowed - .php .php3 .php4 .cgi .pl .exe .bat .reg<br />
|
|
|
|
Joined: Jan 2004
Posts: 20
User
|
User
Joined: Jan 2004
Posts: 20 |
I have added the .mov/.mgp/.mpeg/.wmv extenstions - it's working for .mp3 files -
|
|
|
|
Joined: Jan 2004
Posts: 20
User
|
User
Joined: Jan 2004
Posts: 20 |
is NOT working for .mov files etc - any suggestions?
|
|
|
|
Joined: Mar 2001
Posts: 644
Member
|
Member
Joined: Mar 2001
Posts: 644 |
I haven't the foggiest idea then... what about requiring them to be zipped first?
Otherwise, you'd be allowing people to stream the videos from your site. I personally don't allow uploads right now, though that will be changing once my upgrade is complete. I'll only be allowing .txt and .zip files.
|
|
|
|
Joined: Jan 2004
Posts: 20
User
|
User
Joined: Jan 2004
Posts: 20 |
This forum is for commercial directing and advertising students who will post work and discuss it -
zipping and stuffing sounds good - it would be cooler to be able to U/L the movie files though
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
a) You don't tell us what error you get. b) How big are they? - note that PHP itself has a filesize limit in the php.ini of your server setup. Usually this is 2 MB by default. So PHP won't accept anything bigger unless you raise this image in the php.ini file.
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
Well then you need to check the file upload size limit in PHP with your host. Like I said above - 2 MB is usually the default in any PHP installation. But it can be raised.
|
|
|
|
Joined: Jan 2004
Posts: 20
User
|
User
Joined: Jan 2004
Posts: 20 |
I got one to work - don't ask me how
|
|
|
|
Joined: Jan 2004
Posts: 20
User
|
User
Joined: Jan 2004
Posts: 20 |
Oh - you're right - it's a 2MB limit-
|
|
|
|
Joined: Jul 2001
Posts: 1,157 Likes: 82
coffee and code
|
coffee and code
Joined: Jul 2001
Posts: 1,157 Likes: 82 |
edit the '.htaccess' file inside your ubbthreads directory an add the following lines to the very top: <br />php_value post_max_size 10485760<br />php_value upload_max_filezise 10485760<br /> now go in and edit your ADMIN config settings, changing "If allowing file uploads you must specify which file types you want to allow (separate file types with a comma):" to read the following: <br />.gif,.jpg,.jpeg,.txt,.zip,.png,.avi,.mpg,.mpeg,.wmv,.mov,.mp4,.mp3<br /> and change "Maximum file upload size (in bytes):" to "10485760" ... this is 10mb max.... 20mb max would be 20971520 I hope this helps!
|
|
|
|
Joined: Dec 2003
Posts: 107
Journeyman
|
Journeyman
Joined: Dec 2003
Posts: 107 |
I can't seem to find any ".htaccess" inside my ubbthreads directory (have the same problem with 2 MB max)
|
|
|
|
Joined: May 2001
Posts: 550
Code Monkey
|
Code Monkey
Joined: May 2001
Posts: 550 |
>I can't seem to find any ".htaccess" inside my ubbthreads directory Then you need to create it.
|
|
|
|
Joined: Dec 2003
Posts: 107
Journeyman
|
Journeyman
Joined: Dec 2003
Posts: 107 |
so, I simply create the file called ".htaccess" inside my ubbthreads directory (where all my ubbthreads files are) and the content of that file will be:
php_value post_max_size 10485760 php_value upload_max_filezise 10485760
(or whatever size I chose as max)
that's all?? any special permissions need to be set?
|
|
|
|
Joined: Dec 2003
Posts: 107
Journeyman
|
Journeyman
Joined: Dec 2003
Posts: 107 |
Well, I tried it. made the file uploaded as ASCII and CMOD to 644 went to config etc. no go unfortunately...still gets error when trying to ul more than 2 MB...damn
|
|
|
|
Joined: Jun 2003
Posts: 1,025
Junior Member
|
Junior Member
Joined: Jun 2003
Posts: 1,025 |
This is what I have in my root .htaccess: php_value upload_max_filesize=20M ; LimitRequestBody 10240000
I am able to upload files up to 20Meg.
Also, be sure that if you create it in notepad.exe that you save as filename .htaccess file type is "all files". Otherwise you will end up with .htaccess.txt
|
|
|
|
Joined: Aug 2000
Posts: 1,609
Addict
|
Addict
Joined: Aug 2000
Posts: 1,609 |
Depending on your webhost, .htaccess files may be hidden from normal FTP viewing, like mine. In my case, I can only see the .htaccess file through my control panel's file manager. It's rather inconvenient.
|
|
|
|
Joined: Jun 2003
Posts: 1,025
Junior Member
|
Junior Member
Joined: Jun 2003
Posts: 1,025 |
Yeah, mine is that way too. I have to use file manager through C-Panel to view my existing .htaccess files.
|
|
|
|
Joined: Aug 2000
Posts: 1,609
Addict
|
Addict
Joined: Aug 2000
Posts: 1,609 |
I believe we both use VertexHost, no? The reason I say it's inconvenient is because port 2082 is blocked here at work, so I can't do jack while here in regards to everything "cpanel".
|
|
|
|
Joined: Jun 2003
Posts: 1,025
Junior Member
|
Junior Member
Joined: Jun 2003
Posts: 1,025 |
No, I use TekAdvantage. I just generally prefer my ftp client to using cpanel's file mananger.
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 417
Joined: November 2001
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|