Forum Moderators: coopster

Message Too Old, No Replies

File Upload Script

PHP vs. JSP

         

nvisioncurtis

7:34 pm on Mar 16, 2010 (gmt 0)

10+ Year Member



Hi,

I recently saw an upload page on a website that boasted 2 GB file uploads is that possible? It was using JSP not PHP.

I need to replicate this functionality - If this is a JSP capability does anyone know of a good upload script?

I have had issues uploading files larger then 100MBs on my MOSSO cloud accoun t and would like to be able to upload files that are 300-500MBs

[edited by: jatar_k at 7:38 pm (utc) on Mar 16, 2010]
[edit reason] no urls thanks [/edit]

dreamcatcher

5:07 am on May 8, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



PHP should be able to handle large file uploads providing your PHP.ini files are set to reflect large uploads. 2MB is usually a default limit. There are some nice flash uploaders out there which offer PHP functionality and progress bars. try a search for Uploadify, that might help you.

I`m familiar with JSP, sorry.

dc

nvisioncurtis

8:14 pm on May 10, 2010 (gmt 0)

10+ Year Member



Yeah, I think my Hosting provider (Mosso) has something to do with it. Although I have now successfully uploaded a 700mb file. I just can't upload 3 200mb file - only the first uploads. Multiple uploads work however with smaller files...

I was looking at Uploadify and SWFupload - I got stumped and put on hold for now.

rainborick

3:27 am on May 11, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



It is common for shared hosting services to limit the execution time for scripts. And since the clock is running when your users are uploading files to your site, it's something you just have to accept, find a work-around, or buy a dedicated server where you'd set your own limits. The only work-around I know of is to find a way for users to upload their files via FTP instead of relying on a conventional upload script.

coopster

1:42 pm on May 11, 2010 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



And since the clock is running when your users are uploading files to your site


True, but it may not necessarily be a time issue when it comes to the server configuration. You'll have to check with your host to be certain where your time out issues lie. More often than not it is the HTTP server and a memory limit, not necessarily a PHP configuration issue. This has been the case in most of my experience.

Any time spent on activity that happens outside the execution of the script such as system calls using system(), stream operations, database queries, etc. is not included when determining the maximum time that the script has been running.


set_time_limit [php.net]

nvisioncurtis

2:40 pm on May 11, 2010 (gmt 0)

10+ Year Member



Thanks guys. I think its a time out issue as well but I'm reasonably happy with a 600MB upload. I just don't like it when there is a potential that a client may upload several large file and I only get the first.

I am looking into Uploadify. My assumption is the if I limit the number of simultaneous uploads that the queue of files will upload without out this issue.