Upload folder (and subfolders)
am 16.12.2005 15:12:22 von RoberticoIs it possible to upload a complete folder including the subfolders using
PHP ?
Regards,
Robertico
Is it possible to upload a complete folder including the subfolders using
PHP ?
Regards,
Robertico
as far as i know this is not possible
as far as i know this is not possible
> Is it possible to upload a complete folder including the subfolders using
> PHP ?
The user has to zip the folder, upload the zipped file through an HTML form,
and your script can unzip the file on the server side, an re-create the
subfolders. Otherwise it is impossible to browse the client's hard drive or
to upload a whole folder using an HTML form (this is a necessary limit of
HTML forms). Other solutions might use ActiveX, Java Applets, or things like
that.
BLob
> Is it possible to upload a complete folder including the subfolders using
> PHP ?
The user has to zip the folder, upload the zipped file through an HTML form,
and your script can unzip the file on the server side, an re-create the
subfolders. Otherwise it is impossible to browse the client's hard drive or
to upload a whole folder using an HTML form (this is a necessary limit of
HTML forms). Other solutions might use ActiveX, Java Applets, or things like
that.
BLob
> Is it possible to upload a complete folder including the subfolders
> using PHP ?
The upload functionality (the file input element) in current browsers does
not support this. Therefore it is not possible with a serverside techology.
You can not even try to automate it with DHTML autofilled file input fields
either since the element is write protected for obvious security reasons.
You would need more than a little clientside (Java) coding to accomplish
something like that.
I'd recommend teaching users to zip their folders (which is easy with a
right click on Win) and then upload them. You could then automate the
unzipping process of the folder(s) on the server.
HTH
--
Suni
> Is it possible to upload a complete folder including the subfolders
> using PHP ?
The upload functionality (the file input element) in current browsers does
not support this. Therefore it is not possible with a serverside techology.
You can not even try to automate it with DHTML autofilled file input fields
either since the element is write protected for obvious security reasons.
You would need more than a little clientside (Java) coding to accomplish
something like that.
I'd recommend teaching users to zip their folders (which is easy with a
right click on Win) and then upload them. You could then automate the
unzipping process of the folder(s) on the server.
HTH
--
Suni
Robertico wrote:
> Is it possible to upload a complete folder including the subfolders using
> PHP ?
Not 'less you zip it, like blob says.
but I've tried a few Java thingers that work:
http://www.radinks.com/upload/?mg
http://jupload.biz/en_0.html
http://sourceforge.net/projects/jupload/
--
juglesh
Robertico wrote:
> Is it possible to upload a complete folder including the subfolders using
> PHP ?
Not 'less you zip it, like blob says.
but I've tried a few Java thingers that work:
http://www.radinks.com/upload/?mg
http://jupload.biz/en_0.html
http://sourceforge.net/projects/jupload/
--
juglesh
Thanks all for the explanation.
Robertico
Thanks all for the explanation.
Robertico