ASP,HTML,IMAGE,FILES,NEW,script,utilizes,serv
Quick Search for:  in language:    
ASP,HTML,IMAGE,FILES,NEW,script,utilizes,serv
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
ASP/ VbScript Stats

 Code: 118,709 lines
 Jobs: 148 postings

 
Sponsored by:

 

You are in:

 
Login


 

 


Latest Code Ticker for ASP/ VbScript.
Click here to see a screenshot of this code!Create Time List Selection
By Chris on 6/12

(Screen Shot)

Getting a random record from a table
By Serkan YOGURAN on 6/11


cool circle and line drawer
By john sheridan on 6/10


Click here to see a screenshot of this code!A Site Manager with Free Upload Functions (without payable components)
By Francisco J Riquelme on 6/10

(Screen Shot)

Simple Calculator
By Alistair Rodrigues on 6/9


Nutty Password
By jason mulryan on 6/9


Enviar email HTML ( send an email html )
By Javi P. D. on 6/9


Banner (rotacion de banners)
By Javi P. D. on 6/9


Paginar ( Paging )
By Javi P. D. on 6/9


Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!





Affiliate Sites



 
 
   

A+ ASP Image/Document uploader | view/delete/upload files... create/delete folders

Print
Email
 
winzip icon
Submitted on: 2/13/2002 6:00:57 PM
By: Mike Loffland  
Level: Intermediate
User Rating: By 15 Users
Compatibility:ASP (Active Server Pages), VbScript (browser/client side)

Users have accessed this code 8896 times.
 
(About the author)
 
     This script utilizes a mix of server-side ASP and client-side vbscript to provide users with the capability to navigate the directory structure of the web-server, select an image file or a document file, and then pass the file attributes back to an HTML form. If the file selected is an image... The image will be displayed to the user so they know that the selected file is the one they want. In addition... the name, width, height, and size of the selected image is collected (code snippet borrowed from Mike Shaffer on 4guys http://www.4guysfromrolla.com/webtech/050300-1.shtml) and passed back to the HTML form. If the file selected is a document... the user has the option to download and open the selected file. The name and size of the document selected is passed back to the HTML form. Additional functionality: UPLOAD IMAGE OR DOCUMENT FILES to the given directory... DELETE IMAGE OR DOCUMENT FILES in the given directory... CREATE NEW FOLDERS... DELETE FOLDERS. This code can be modified to allow any type of file to be uploaded.

 
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!

    '**************************************
    ' for :A+ ASP Image/Document uploader | 
    '     view/delete/upload files... create/delet
    '     e folders
    '**************************************
    Active Server Pages. Client-Side VBScript.
    The required "uploader.dll" component is zipped In this zip file. The source-code is included (imageClass.cls).
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzipto decompress it.

Virus note:All files are scanned once-a-day by Planet Source Code for viruses,but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:
1)Re-scan downloaded files using your personal virus checker before using it.
2)NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
1) You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for langauges that allow it) freely and with no charge.   
2) You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 1 submission(s) by this author

 

 
Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
Reason:
 
Your Vote!

What do you think of this code(in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
2/14/2002 11:21:14 AM:Chris Walker
This code is awsome!  I've been looking 
for something like this for a long 
time.  This will make a lot of the 
admin editing on my company's web site 
a lot easier.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/14/2002 11:43:46 AM:Mike Loffland
The source-code for the uploader.dll is 
now included in the .zip file (as 
requested)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/20/2002 2:27:37 PM:Ray Barbee
Nice... but you should add the 
capability to create folders and delete 
files too. I think that would make this 
even more convenient.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/20/2002 2:57:40 PM:Avery Mitchell
Exactly what I was looking for
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/21/2002 5:02:11 PM:Mike Loffland
Ability to create/delete folders and 
delete files added (as requested)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
3/11/2002 5:25:39 AM:undercodex
Nice piece of work well done
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
3/18/2002 5:35:02 PM:Ritzsky
Great work but I can't get it to view 
the files in any of the directories 
that I create.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
3/18/2002 8:23:28 PM:Mike Loffland
Have you edited the i_settings.asp file 
to reflect the directory structure of 
your web server?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/3/2002 11:11:20 AM:alexis
Hi, I changed all the appropriate 
settings and registered the dll on my 
web server.  But when I click on the 
upload file button I get page cannot be 
displayed even though all nec files are 
there.  Any thoughts?  Thanks 
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/11/2002 10:58:27 PM:John
I am beginner of ASP and I would like 
to know the source code on how to get 
the name of the file(s) that we had 
been uploaded. Any 
ideas for me. 
Please help me!!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/12/2002 8:14:21 PM:Jeff
I changed the settings, and registered 
the dll. How come it shows a page not 
found result after i click the submit 
button in the upload feature?
Please 
advise 
Thanks
Jeff
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/16/2002 1:18:38 AM:Delia
Hi,
I need to upload an image file 
to my server.
i was wundering if is 
working with PWS server? I only have 
win 98
I followed your instructions 
(the settings for the image path I just 
leave it deafault) and I runed just 
upfile.asp
...I can't get it to 
work.
could you please help me?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/29/2002 12:54:55 PM:Mike Loffland
I never tested it on Personal Web 
Server, so I'm not sure.
The 
"start.asp" script is the intitial 
start page for the demo. Follow the 
instructions on that page to test 
it.
Make sure the component has 
been 
registered as well.
Mike 
Loffland
mike@motoregg.com
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/29/2002 12:58:16 PM:Mike Loffland
I updated the script to resolve the 
"page cannot be found error". The 
problem was that the script was trying 
to navigate to a predifned folder that 
did not exist. This folder is defined 
in the i_settings.asp file. It was 
originally set to navigate to 
C:\inetpub\wwwroot\images. I have since 
changed this default to 
C:\inetpub\wwwroot. If you continue to 
receive the "file cannot be found" 
error, double check your i_settings.asp 
file to make sure that the folder 
defined in the strImageRoot variable is 
indeed a valid location on your 
server.
Mike 
Loffland
mike@motoregg.com
http://www.
motoregg.com
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
Name:
Comment:

 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | ASP/ VbScript Home | Site Home | Other Sites | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.  Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.