[thelist] ASP and Imgs

Don Makoviney don at aspalliance.com
Tue Oct 22 21:56:01 CDT 2002

Or, go a step further and use ASP.NET and use the built-in super-robust
image upload built-in to .NET - it rules. I made an upload employee pic
app for our company phone directory and it took about 8 lines of code.
It allowed me to access and validate image properties and everything
(i.e. type, size, etc. . .)

If you need resources, let me know.


Don Makoviney
MAKOVISION.COM - Handpicked News For Web Developers

FREE Usability/WebDev Newsletter

-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org] On Behalf Of
David.Cantrell at Gunter.AF.mil
Sent: Tuesday, October 22, 2002 9:08 AM
To: thelist at lists.evolt.org
Subject: RE: [thelist] ASP and Imgs

>(1) setting up an 'upload' directory for the client to load the
>pictures into.
>(2) running a scheduled job to move the pictures to the directory they
>should be in, check for duplicate names - overwrite or append a numeric

>- your choice, and add the link to the db.  (Or give the client an
>"admin" page to run this process.)
>(3) the process would also clear out the 'upload' directory.
>(4) you could send the customer an email at this point ... or not.
>(5) have a password protected dynamic "admin" page that looks for
>pictures in the db with no <information about them> and lets the client

>'fill in' the missing information for these new pictures and loads that

>into the db.

I would go one step farther, since according to the subject line this is
ASP I would get a free or paid-for file upload component (or heck, use
one of the roll-your-own vb or even the vbscript-only ones if you can't
add components to the server) and then have the upload processing logic
do steps 1-5 all at once.

User fills out form with all necessary info from step 5 and gives the
path to the file, then uploads file over the web using the form, server
puts file in appropriate location, determines name/link of the file,
upates the database (insert,update,etc) and then responds to the user
with web confirmation the process succeeded.

Even better if you really want to go crazy you can wrap the ASP script
in a transaction, so if it fails halfway it rolls back the file upload.
I think at least, I don't use transactions so far myself...

For unsubscribe and other options, including
the Tip Harvester and archive of thelist go to: http://lists.evolt.org
Workers of the Web, evolt !

More information about the thelist mailing list