deansatch Posted January 13, 2010 Share Posted January 13, 2010 I want to allow my customers to upload large files to their directory - could be anywhere between 100MB and 300MB. I am pretty sure that if I attempted to do that with a simple upload form in php with my current host the php script would be running for so long that they would disable scripting on the account as they have a thing about "permanent server processes". I don't like to offer regular ftp login details as an option as there is nothing stopping the customer uploading a php file that can access the rest of the server and delete files. Would a php based ftp solution solve this problem? i.e It would be able to check filetypes before accepting the upload - but would it still have the same problems with running the script past the limit the host allows? Quote Link to comment https://forums.phpfreaks.com/topic/188322-uploading-really-large-files/ Share on other sites More sharing options...
PHP Monkeh Posted January 13, 2010 Share Posted January 13, 2010 PHP has a configuration setting for the maximum upload file size - way below 100MB by default (usually hovering around 16MB or so I think). You can no doubt ask for this to be increased, but I'd be impressed if your host upped it to 100MB, never mind 300MB. And as you've already noted the page would need to be open for the entire duration of the upload, you could probably find a script out there which will generate a dynamic progress bar or something similar. I'd suggest setting up an FTP account for these users, and just restricting them to one directory - there's nothing particularly risky about this method, especially if you move it outside of the www root so that it can't be accessed and run from the web. Quote Link to comment https://forums.phpfreaks.com/topic/188322-uploading-really-large-files/#findComment-994183 Share on other sites More sharing options...
deansatch Posted January 13, 2010 Author Share Posted January 13, 2010 So would a php based ftp client make any difference? I would much rather they felt as though they were on my site when uploading their files and didn't have to use an ftp client or the browsers own ftp features. Quote Link to comment https://forums.phpfreaks.com/topic/188322-uploading-really-large-files/#findComment-994188 Share on other sites More sharing options...
JonnoTheDev Posted January 13, 2010 Share Posted January 13, 2010 Using ftp requires your users to have access to an ftp client (and be able to set it up). Using ftp functions through a server side script within a browser will still require the user to upload a file to the server. Server side ftp is used to transfer files from the server to another ftp server. PHP is server side, not client side! For large file uploads I often use http://uber-uploader.sourceforge.net/ This at least shows the progress of the file upload. Quote Link to comment https://forums.phpfreaks.com/topic/188322-uploading-really-large-files/#findComment-994227 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.