Results 1 to 5 of 5

Thread: Upload files 30MB or larger

  1. #1
    Registered
    Join Date
    Aug 2009
    Location
    texas
    Posts
    26
    Rep Power
    0

    Upload files 30MB or larger

    I want to upload a file using a Perl script. This is the code I am using:

    open ( UPLOADFILE, ">$upload_dir/$filename2" ) or die "$!";
    binmode UPLOADFILE;
    while ( <$upload_filehandle> )
    {
    print UPLOADFILE;
    }
    close UPLOADFILE;

    It works fine with small files < 1mb. I want to upload files 30MB or so and this is not working.

    Suggestions?

    Thanks!
    CBaker

  2. #2
    Former Spam Filter (EU) IanS's Avatar
    Join Date
    Mar 2004
    Location
    Washington (THE original UK one!)
    Posts
    12,964
    Rep Power
    30
    You will be hitting the unchangeable limit set by Powweb of a 60sec execution time for any script. You will need to find some other way of uploading large(ish) files.
    This is a Powweb customer
    helping Powweb customer forum.

    I am a customer just like you!!

    Some matters can only be answered by staff or support.
    Give it a go - ask here first!

  3. #3
    Mod.. with bite.. Croc Hunter's Avatar
    Join Date
    Sep 2002
    Location
    Australia
    Posts
    7,332
    Rep Power
    26
    There are several free FTP programs like FileZilla that will do it.
    Croc Hunter MSC :

  4. #4
    Registered
    Join Date
    Aug 2009
    Location
    texas
    Posts
    26
    Rep Power
    0

    Restrict directory access

    I want a user to be able to upload the files to a specific directory, hence the script. Is there a way to limit directory access using an FTP client?

    Thanks,
    CBaker

  5. #5
    target='_blank' snowmaker's Avatar
    Join Date
    Nov 2002
    Location
    Not in Solomons anymore.
    Posts
    3,441
    Rep Power
    21
    When you create a FTP user in OPS, here, FTP, you can also define the users 'home' directory. This can be a subdirectory of any level below your Root, and the new user won't have any access above their 'home' directory.
    -bruce /* somdcomputerguy */
    'If you change the way you look at things, the things you look at change.'

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •