Velocity Reviews

Velocity Reviews (
-   ASP General (
-   -   ASP Upload (

John Smith 09-23-2003 10:57 AM

ASP Upload

I'm using the Persists ASPUpload component to upload files to various
sub-directorys in the root of my website. I have written a short bit of code
for this but it always uploads to the root directory. Anyone know where i'm
going wrong ?



---------------------html that sends to ASP ---------------------

<form action="upload.asp?upload=yes" method="post"
<input type="file" name="file">
<select name="folder">
<option value="folder_one">Folder One</option>
<option value="folder_two">Folder Two</option>
<input type="submit" name="Submit" value="Upload">

If Request.QueryString("upload")="yes" Then

Set Upload = Server.CreateObject("Persits.Upload")
Upload.OverwriteFiles = False
Upload.SetMaxSize 1048576

strFolder = Upload.Form("folder")
strPath = "d:\home\bloggs\public_html\" & strFolder

All times are GMT. The time now is 03:13 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.