Upload folder (and subfolders)

Upload folder (and subfolders)

am 16.12.2005 15:12:22 von Robertico

Is it possible to upload a complete folder including the subfolders using
PHP ?

Regards,

Robertico

Re: Upload folder (and subfolders)

am 16.12.2005 15:52:59 von Mustafa Yalcin Acikyildiz

as far as i know this is not possible

Re: Upload folder (and subfolders)

am 16.12.2005 15:52:59 von Mustafa Yalcin Acikyildiz

as far as i know this is not possible

Re: Upload folder (and subfolders)

am 16.12.2005 16:03:07 von 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

Re: Upload folder (and subfolders)

am 16.12.2005 16:03:07 von 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

Re: Upload folder (and subfolders)

am 16.12.2005 16:12:22 von Juha 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

Re: Upload folder (and subfolders)

am 16.12.2005 16:12:22 von Juha 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

Re: Upload folder (and subfolders)

am 16.12.2005 21:16:40 von 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

Re: Upload folder (and subfolders)

am 16.12.2005 21:16:40 von 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

Re: Upload folder (and subfolders)

am 17.12.2005 12:59:23 von Robertico

Thanks all for the explanation.

Robertico

Re: Upload folder (and subfolders)

am 17.12.2005 12:59:23 von Robertico

Thanks all for the explanation.

Robertico