| | |
Upload files
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Nov 2007
Posts: 34
Reputation:
Solved Threads: 0
I have a PHP (version 5) site on a Windows server that allows uploading of files into our Windows server. I currently allow the user to upload up to 10 files at once. If users upload files as big as 20 mb or more slows the upload process down. Should I just allow one file upload at a time for better performance? I was wondering how other PHP developers handle this?
•
•
Join Date: Jul 2008
Posts: 149
Reputation:
Solved Threads: 25
This is one of the weaknesses of php. You can not use php to check the file size until AFTER the file/image has been SUCCESSFULLY uploaded to the server.
You also can not use javascript to access the client side file system. This is an area where i see Adobe Flash upload scripts really fill the gap. As they tend to be able to check the size of the file prior to the upload occurring.
I'd suggest looking into some of the many flash upload scripts that exist and how to tie them into php, unless someone else has a more controlled solution.
You also can not use javascript to access the client side file system. This is an area where i see Adobe Flash upload scripts really fill the gap. As they tend to be able to check the size of the file prior to the upload occurring.
I'd suggest looking into some of the many flash upload scripts that exist and how to tie them into php, unless someone else has a more controlled solution.
If you're question/problem is solved don't forget to mark the thread as Solved!
-- Code I post is usually but not always tested. If it is tested it will be against 5.2.12 or 5.3.1
-- Code I post is usually but not always tested. If it is tested it will be against 5.2.12 or 5.3.1
•
•
Join Date: Mar 2008
Posts: 24
Reputation:
Solved Threads: 0
I first display a message to the user letting them know the maximum size of files they can upload (post_max_size), then I use a flash upload script to subtract from that number for each file they choose to upload. When they run out of space, I disable the browse files button.
I wish I still had the link for the flash script I am using. If I can track down the original source I will post it here.
I wish I still had the link for the flash script I am using. If I can track down the original source I will post it here.
•
•
Join Date: Apr 2008
Posts: 78
Reputation:
Solved Threads: 0
are you uploading to a folder tricky question to answer you could try making a loop to upload one at time make the submit page call to itself until the files value return a false value then exit but this will still take the same amount of time i would of thought. That is how i handle my news letters when emailing them to alot of people
![]() |
Similar Threads
- Upload files into database (JSP)
- upload files hlp (PHP)
- validate-upload file (ASP.NET)
- upload images and store the location in a database (PHP)
- unable to upload files or send email on wireless (Windows NT / 2000 / XP)
- Cannot Upload files or send email on wireless (Web Browsers)
- how to Upload files using Linux bash Shell scripting and CGI (Shell Scripting)
- How To Upload in PHP (PHP)
- Cant upload dreamweaver "files folder" to site (Networking Hardware Configuration)
Other Threads in the PHP Forum
- Previous Thread: Retrieving Images from my SQL
- Next Thread: Getting start with MySQL
Views: 404 | Replies: 3
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary broken cakephp checkbox class cms code cron curl database date directory display download dynamic ebooks echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla jquery js limit link login loop mail mediawiki menu methods mlm mod_rewrite multiple mysql oop parse paypal pdf php problem query radio random recursion regex remote script search select server sessions sms soap source space speed sql stored structure subdomain syntax system table tutorial update updates upload url validation validator variable video web xml youtube





