tricky upload situation request (5GB), is it possible?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dynamind
    New Member
    • Sep 2011
    • 3

    tricky upload situation request (5GB), is it possible?

    We have a dedicated webserver with debian6 (squeeze), apache2, php5 + mysql5. This server is used as a lamp and has 1024mb random access memory. Diskspace is 100GB.

    A client needs 5GB filesize uploads for video productions.
    Is it possible with PHP/AJAX?
    With POST the files get stored first into the RAM and after uploading all data stored to the disk, and that's why we are limited.
    There must be a better option for uploading.
    I tried with curl and got better results.

    I found options like jUpload, where files get chunked.
    How would you handle such large uploads?
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    How would you handle such large uploads?
    FTP. this is exactly the protocol for that purpose. on the downside, HTML (including JS) is not suited to initiate an FTP transfer. you might want to look into browser extensions, which have access to the browser’s FTP capabilities (eg. Firefox’ FireFTP add-on).

    Comment

    • dynamind
      New Member
      • Sep 2011
      • 3

      #3
      I'm using the upload function inside a joomla 1.7 cms. Does it make a difference using FTP instead of CURL?

      thanks for your reply :)

      I'd suppose the upload problem results from mod_fcgid

      mod_fcgid: stderr: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 97477678 bytes) in Unknown on line 0, referer: hxxp:/www.mydomain.co m/kontakt-upload.html

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        Does it make a difference using FTP instead of CURL?
        that are two different things, FTP is a protocol (like HTTP) and cURL a tool for transferring data (cURL can make use of FTP, FTPS, Gopher, HTTP, HTTPS, SCP, SFTP, TFTP, Telnet, DICT, the file URI scheme, LDAP, LDAPS, IMAP, POP3, SMTP and RTSP)

        Comment

        • dynamind
          New Member
          • Sep 2011
          • 3

          #5
          from the security point of view, does it make sense to use SFTP upload with an explicit account for one specific uploads folder limited with quota, or will it be possible to capture the login credentials with any debugger?

          Comment

          • Dormilich
            Recognized Expert Expert
            • Aug 2008
            • 8694

            #6
            what I have seen is a time limited FTP account for a specific folder.

            Comment

            Working...