Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    dkz
    dkz is offline
    Member
    Join Date
    Sep 2004
    Posts
    100

    Default What Would Block .mov File Upload?

    Hello,

    I have a simple upload script made in flash with a php back end and it works great. The problem I am now having is that the server will not allow file uploads with the extension .mov.

    Is there a configuration that would block the upload of a .mov file?

    Thanks for the help.

  2. #2
    Member
    Join Date
    Mar 2006
    Posts
    1,215

    Default

    Your problem may be the file size not the extension.

  3. #3
    Member nyjimbo's Avatar
    Join Date
    Jan 2003
    Location
    New York
    Posts
    1,082

    Default

    Quote Originally Posted by dkz View Post
    Hello,

    I have a simple upload script made in flash with a php back end and it works great. The problem I am now having is that the server will not allow file uploads with the extension .mov.

    Is there a configuration that would block the upload of a .mov file?

    Thanks for the help.
    You use the words "not allow" and "block", are you getting some kind of error on the upload attempt or is the file just not uploading and saving?. Did you write the script?. Do you know the code enough to see if something about a ".mov" extensions might be parsed oddly and rejected or thrown away. Is this you uploading or a client?. If its a client did you try to eliminate the obvious like file size, naming convention, upload method/technique, etc?.
    "A dog has raised it’s hind leg on the age of nevermore !"
    -- Rolf

  4. #4
    dkz
    dkz is offline
    Member
    Join Date
    Sep 2004
    Posts
    100

    Default

    Thanks for the replies!

    I downloaded the flash version of the script and modified the actionscript to fit my needs and I wrote the php backend. This way I can the percent completed of the upload. The post_max_size in my php config is big enough to handle the files and there is no coding to block different file types in the php or the flash script.

    I did try renaming the file and tried to uplaod a small file with just the extension .mov with no luck. The script has no problem uploading PDF's EXE's and zip files. I made this upload page for a friend so he can share some business files with colleges.

    Any suggestions?

  5. #5
    Member
    Join Date
    Jan 2008
    Location
    Buenos Aires, Argentina
    Posts
    833
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    ok, let's parse the facts:
    • You tried to upload a small .mov file: no luck
    • You can although upload exe and zip files (no matter the size?) (try uploading a 30 MB zip files and tell me if you succeeded)

    I have developed a php script to upload and share privately these files and the problem I have with that was that uploads not only depends on allowing file sizes, you must allow long execution times. So, at the beginning of the php code I've inserted "set_time_limit(0);" and uploaded a php.ini file to that folder containing:

    Code:
    register_globals = On
    safe_mode = Off
    upload_max_filesize = 50M
    post_max_size = 50M
    max_execution_time = 3600
    "max_execution_time = 3600" assure you that the script may be working for as long as 1 hour, which is enough to upload a file that doesn't weighs more than post_max_size = 50M
    Content is the king. Usability is my God.

  6. #6
    Member nyjimbo's Avatar
    Join Date
    Jan 2003
    Location
    New York
    Posts
    1,082

    Default

    Quote Originally Posted by dkz View Post
    Thanks for the replies!

    I downloaded the flash version of the script and modified the actionscript to fit my needs and I wrote the php backend. This way I can the percent completed of the upload. The post_max_size in my php config is big enough to handle the files and there is no coding to block different file types in the php or the flash script.

    I did try renaming the file and tried to uplaod a small file with just the extension .mov with no luck. The script has no problem uploading PDF's EXE's and zip files. I made this upload page for a friend so he can share some business files with colleges.

    Any suggestions?
    Just for the heck of it, take a small .mov file, rename it to the same filename but with a .wmv extension and try to upload it. Example: mymovie.mov change to mymovie.wmv

    If it uploads then you are definitly choking on the extension name. It really appears you are having an issue with the filename and not a size or data format issue, but this would confirm it I think.
    "A dog has raised it’s hind leg on the age of nevermore !"
    -- Rolf

Similar Threads & Tags
Similar threads

  1. upload file
    By hybrid56 in forum New User Questions
    Replies: 1
    Last Post: 07-26-2011, 02:53 PM
  2. when i upload file i can see it
    By sohrab.s.d in forum New User Questions
    Replies: 16
    Last Post: 05-29-2009, 11:01 PM
  3. setting max file size upload through file manager?
    By irate in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 01-09-2005, 02:58 PM
  4. BUG * Wrong file upload (file manager)
    By H2Hosting.com in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 05-09-2003, 12:44 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube