Mar 22nd, 2010, 7:38 PM
(Mar 22nd, 2010, 7:22 PM)Ben Wrote:Quote:any way to implement a progress bar into the file upload function?
Good question. I've never done that myself; presumably you'd need a way to send snippets of info back to the client to give it an idea of how much of the file is left to upload. But I don't know much about it, sorry.
Yeah, the problem with this is that, if it is a large file, and by large I mean even a file of 50 - 75 mb, if there is no indication as to what is going on, the user most often gets confused and tries to submit again or simply gives up thinking the connection was lost. That is why some sort of indication as to the progress of the upload is extremely helpful.
Quote:Ever thought of using Perl for this function to get around the file size restrictions of PHP?
Not really. The PHP restrictions are all configurable, but of course it all depends on your hosting environment as to how large a file may be uploaded. I think I'll keep FT just with PHP though, and not move into Perl or other languages.
Well the real problem here is memory usage. I you are trying to upload very large files, in the range of say 250 -600 mb, You need to set the php.ini to a much higher amount than normal, and as well, the amount of memory which will be allowed to be used. Unless you own your own servers like I do, this most likely will not happen. Perl is much better at handling file uploads ( up to 2 Gb) and memory usage. That being said, I guess that this part is not really your main focus with formtools. It would really add significant functionality though ;-)
Dave
All the best -
Ben