[thelist] ASPUpload woes
Anthony Baratta
anthony at baratta.com
Tue Apr 1 16:02:32 CDT 2008
First off, does the full path including the drop folder exist?
Second, does IIS have write access rights to it?
Third, this doesn't look right:
Count = Upload.Save(" & strDropFolderPath & ")
This reads to me, save file in the path '& strDropFolderPath &'. With " around it, it's being taken as a literal.
-----Original message-----
From: "webdev" EvoltList at no-pun.com
Date: Tue, 01 Apr 2008 13:49:49 -0700
To: "Evolt" thelist at lists.evolt.org
Subject: [thelist] ASPUpload woes
> Howdy fellow code monkeys.
>
> First time using ASPUpload, specifically, and am stuck with syntax and or
> collections dilemma.
>
> I want to dynamically generate the specific target folder, by passing the
> value of a SELECT form element named "DropFolder". Error: "The system
> cannot find the path specified." Help appreciated.
>
> <code>
> <%
> Dim Upload, Count, Item, strDropForm, strDropFolder, strDropFolderPath
> Set Upload = Server.CreateObject("Persits.Upload.1")
> strDropForm = Upload.Form("frmUploadProduct")
> strDropFolder = Item.Value("DropFolder")
>
> Upload.OverwriteFiles = True
> 'On Error Resume Next
>
>
> strDropFolderPath = "d:/hshome/etchart/wallpaperforwindows.com/Products/" &
> strDropFolder
>
> Upload.SetMaxSize 1048576 ' Limit files to 1MB
> Count = Upload.Save(" & strDropFolderPath & ")
> %>
> </code>
>
>
> --
>
> * * Please support the community that supports you. * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
More information about the thelist
mailing list