473,657 Members | 2,355 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Upload folder (and subfolders)

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

Regards,

Robertico
Dec 16 '05 #1
5 11327
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
16770
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 and no files are deleted in the folder. The peculiarity of this issue is that the files/subfolders cannot be seen through the windows explorer either. I can only access/delete them through a command shell. Any ideas?
4
2827
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 to mirror the changes as they happen.
3
7881
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 sizes etc. But I can't find anything comparable in VB.NET or am I missing something? All the examples I have found online are iterative/recursive solutions but these take a long time to complete if there are lots of files/folders in a...
0
2109
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 attached it and I can copy and make all the stuff from windows explorer. my sript: option explicit on error resume next
2
2387
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 list the files, creating a link to each file like this 2007/1/file1.pdf 2007/1/file2.pdf 2007/2/file1.pdf 2007/2/file1.pdf
1
4780
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
12748
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 underneath a certain directory needs to be returned, no matter how deep it lies. So, for example, 2 folders in drive X:, one called 'Names' the other called 'Addresses' 'Names' contains 3 different folders, each of which has 2 subfolders...
0
2353
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 handy, easy to backup, and modularized. My setup has not changed much over the years. As of now I have: C:\apache2.2 C:\mysql C:\Php
0
8399
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8312
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8827
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8732
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8606
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7337
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2732
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1959
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.