[FX.php List] PHP Batch uploading

Leo R. Lundgren leo at finalresort.org
Thu Sep 4 14:06:47 MDT 2008


Not that I know of at least. It's not a limitation of PHP but the  
fact that browsers don't support uploading entire folders.

You can solve it using Java applets for the client side if you want  
to, I know there are some. Other than that I can't think of any  
JavaScript to do it either :/

I think the easiest solution for both you and your client is to have  
them zip the folder they want to send, and upload the zipfile. You  
can then unzip the file on your end when needed (if it's a zip file).  
One more step for them, but it's probably that or Java (or ActiveX,  
horrors!).

Be careful though to adjust the php settings such as  
max_upload_filesize and possibly other settings as well, especially  
if you're using a PHP extension such as Suhosin (Hardened PHP).  
Depending on how you handle the zip file extraction you might need to  
adjust memory_limit as well.


4 sep 2008 kl. 21.50 skrev Bob Patin:

> I have a client for whom I just wrote a document-management system.  
> Today he made a new request:
>
> They'd like to be able to batch-upload a folder-full of files at  
> one time, rather than using the standard web upload dialog, which  
> is what they have right now.
>
> Does anyone know of a way to do this with a web form?
>
> Thanks,
>
> Bob Patin
> Longterm Solutions
> bob at longtermsolutions.com
> 615-333-6858
> http://www.longtermsolutions.com
> iChat: bobpatin
> AIM: longterm1954
> FileMaker 9 Certified Developer
> Member of FileMaker Business Alliance and FileMaker TechNet
> --------------------------
> FileMaker hosting and consulting for all versions of FileMaker
> PHP • Full email services • Free DNS hosting • Colocation • Consulting
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list


-|

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20080904/deb573ce/attachment.html


More information about the FX.php_List mailing list