/    Sign up×
Community /Pin to ProfileBookmark

Uploading a Directory & Contents

Hello,

I’m trying to find a way to upload a directory and all it’s contents, using a browser instead of FTP, without zipping the directory.

Is this possible?

Thanks,

Chris

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@LiLcRaZyFuZzYMar 25.2006 — nope

you mean from your computer to the server, right?
Copy linkTweet thisAlerts:
@tripodkidauthorMar 25.2006 — Yea,

I have a form that I allows users to upload files using POST. I want them to be able to upload all the files in a directory in one shot. The only way I can see that it can be done is to zip the directory first. Then extract the contents server side.

However, I've not done that before so I'm trying to figure out a script to do it.

Thanks,

Chris
Copy linkTweet thisAlerts:
@LiLcRaZyFuZzYMar 25.2006 — Well the zipping would be done by the user, then upload it through a form and use the zip functions to read it:

http://php.net/zip

never tried that though
Copy linkTweet thisAlerts:
@MauMar 26.2006 — You could probably do something with ActiveX in IE, but I [b]highly discourage[/b] that you do that.

My suggestion is to simply place a step-by-step guide on how to compress the folder, and then upload. After you have uploaded it, you can uncompress it on the server.
×

Success!

Help @tripodkid spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...