Link to home
Start Free TrialLog in
Avatar of netraLINK
netraLINK

asked on

??FileSystemObject?? and Multiple File uploads with VB.NET and ASP.NET

Hi Guys

This is the scenario:

A website has many photo galleries of major events in it. These galleries consist of a table with gallery info and another table with image filename linking these images to the gallery. No brainpower needed to understand that part....

The physical images are being stored on the web server in a file system structure like the following:

/images/gallery/2003-02-28/galleryname/xxxxx.jpg

"xxxxx.jpg" is the physical filename of the pic
"2003-02-28" is the date of the gallery
"galleryname" is the venue where the event happened

I now have various photographers which after their events they covered, go online, enter the event details which gets saved on the DB, and then they manually upload all picture files and manually create the folder above (via ftp). (just the date and galleryname parts).

1. Can this folder creation be automated WITHOUT completely comprimising security?

2. Can you have something where the user just lets say supply a folder name containing all local pics to upload, and then have the script automatically upload them to the server. So far I could just see how you MUST have a HTMLInputFile control for every file you want to upload. I need this to be variable as they can have 10, 20 and in most case over 50 to 100 photos to upload for one event.

3. In addition to this, I want them to be able to supply me with a "branding" filename, which will be a gif or jpeg, to be MERGED with the file being uploaded. This is for when an advertiser sponsored an event and we want his logo to appear on all pics. How do I do this?

I realise there is like 3 different questions here, but they all go hand in hand I think.

500 points up for grabs here, and if need be, if many ppl answer, when getting to an answer, i will award more point to ppl that helped.

(will split in 200 points for each answer if multiple ppl answer the different points)

thanks guys!

netraLINK

ASKER CERTIFIED SOLUTION
Avatar of naveenkohli
naveenkohli

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Michel Sakr
Michel Sakr
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of netraLINK
netraLINK

ASKER

Hi Guys

Firstly - naveenkohli
Number 3 - If that works - look like it should - the points yours - thanks man!
Number 1 - With my limited knowledge of web servers, I believe that I will have to give the IUSR on that machine write access to the root folder for my galleries. This is dangerous... I was thinking more in the line of creating a different account than the IUSR, then give that one write permissions, so that normal "surfers" do not have it. The people uploading these pics will be logging into a admin backend - also webbased (asp.net - vb) - so some kind of authentication can go in there too? Any suggestions?
Number 2 - example - cliend side component is a possibility...

Just a note - my hosting server is in the USA, im in South Africa. I do not have full admin access to the server, just normal hosting access.

Thanks!
and oh yeah...

Silvers5 - due to server being so far and no permissions, dont think ZIP would work. Also only one of the links you provided is for a free solution - and I dont think I will be able to get that to work with asp.net.

maybe im wrong?

>authentication can go in there too? Any suggestions?

Use windows based authentication and tell the webserver admin to create a local account that have remote login permission and permissions over your root..
COnnect trhu ssl to the admin part
In all cases the administrator of the remote server might need to work with you closely (by phone.. email..chat) from minutes to hours!

2- client side component will work.. an activex will do the job or a java


>Silvers5 - due to server being so far and no permissions

I don't think you will be able to do anything if you don't have control over your application server(remotely or an admin there)

BTW check with the admin of your webserver.. they must have been disabled FIle access classes also for security..