file uploads
dhayn (179 pencils) | Mon, 2005-08-08 14:19We get a bunch of files sent to us from customers that we in turn put into a gallery on our web site and use in print ads/catalogs.
They have always just emailed them or sent printed photos in the mail but I would like to have a script or web app to upload files to a directory on our server.
Can anybody point me in the right direction, I'm not the best coder so the simpler the better. thanks
Commenting on this Forum topic is closed.
From email to ftp? Automator may be able to help you.
nope, sorry I meant to have a form online so our customers can upload files to our server instead of emailing them to us. Then I guess I would go to the directory to get them.
Basically I am looking for an easy way for anyone to transfer files to me using our web site.
Something along the lines of how we can attach an image when posting here I would think.
That's relatively easy to do. If we are talking about emailed images, then the files are not very big are they? I can set it up for you if you want.
Yeah it's bigger files that cause a problem. I've been trying to figure it out using a script I found with google here: http://dave.imarc.net/php/#fileupload
It works great unless the file is larger than 1 MB or so then the error on the script is a permission denied error. I'm not sure why that would be the cause since it works for smaller files. It seems like it is just timing out.
This might not even be the right solution just something I had stumbled on, so that would be great if you could help me out. Just send me an email or you can IM me on Skype if you have it (the only IM I have access to at work, name is in my profile).
Thanks a lot.
It might have something to do with the php.ini file. PHP has a default "upload_max_filesize" of 2mb. You could just change this value, but uploading very large files via the http-protocol is not very clever.
Either that, or the max filesize is defined in the php-script you are mentioning.
EDIT: I checked the script. The max filesize was defined in upload.php as $my_uploader->max_filesize(15000);, still, you can't upload files larger than 2mb without changing the "upload_max_filesize" value in php.ini.
Hope it helps or something ;P
I think most servers are designed to time out after 30 seconds or limited to 2MB by PHP. You can increase that up to let's say 10MB by editing the server settings but if the files are bigger than that it may be a problem. Say for example 50MB-100MB would be hard to upload. You would need somekind of a progress feedback as well to make sure it's happening. Let me think about this for some more. Maybe kbahey can help us out. I'll point his attention to this thread.