Jump to content

Can php read a directory?


simply07

Recommended Posts

Hello,

I am trying to upload a large amount of files through an admin script. The smallest file i've been able to upload so far is 85mb.  this is a zip file with abotu 50 pictures. ( i have set_ini to control the timeouts and the file upload size)

 

I was wondering if, instead of upload the photos as one big zip folder, is it possible to read a directory on the users computer and upload what is in there?

 

ie: the user specifies a folder and then the script read the files, one by one, and uploads them to the server?

 

Is it possible to do this?

If not, does anyone know of any script/app that allows to upload large files.

 

Thanks to anyone who can help

 

 

 

Link to comment
Share on other sites

Not with pure php. Since it executes on the server, it can't reach out to a user's computer and do things. You'd need to look into a Java/Javascript solution.

 

 

Of course, all of this is as far as I know. There may be a way, but if there is, nothing I've research has shown how to do it with only php.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.