473,395 Members | 1,422 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Upload folder (and subfolders)

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

Regards,

Robertico
Dec 16 '05 #1
5 11278
as far as i know this is not possible

Dec 16 '05 #2
> 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
Dec 16 '05 #3
> 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
Dec 16 '05 #4

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

Dec 16 '05 #5
Thanks all for the explanation.

Robertico
Dec 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Rosa | last post by:
Hi, I'm trying to clear the TIF on Windows XP programmatically with the below code. This code works fine on any folder but the TIF. For some reason the atEnd() statements always defaults to true...
4
by: Egil Hansen | last post by:
Hi all Do C# and .net have some way to monitor a folder in Windows XP/Windows 2000. I want to mirror the content of the folder, including subfolders (if any exsists) to another place, and I want...
3
by: TyBreaker | last post by:
I have a vbscript which returns the folder size of any folder instantly by referring to Folder.Size. I don't need any iteration or recursion through the subfolders, adding together individual file...
0
by: saratchev | last post by:
Hi all i write a script to syncronize a web folder with a normal one. I want to copy all the files from the normal folder to the web folder. How can a reference the web folder? I have already...
2
by: samvb | last post by:
hi guys,.... I am trying to browse a folder located directly under htdocs. The folder, say called 2007 got 6 subfolders inside it, named 1-6. Each of this subfolders got 2 files each. I need to...
1
mafaisal
by: mafaisal | last post by:
Hello, I am Using VB6 Here Hw to Get SubFolder Names of Given Folder I have here Code But Error is coming
2
by: pbrown | last post by:
Hey All, My problem appears to be pretty simple. I need a way of listing all the folders that exist in a certain directory. By all the folders, I mean ALL the folders; any file folder that exists...
0
by: Chuck Anderson | last post by:
I'm trying to come with a good organization plan for the Apache, Php, MySQL development software on my home PC and am wondering what sort of folder structure others may have come up with that seems...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.