Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > mysmartupload issue

Reply
Thread Tools

mysmartupload issue

 
 
Todd
Guest
Posts: n/a
 
      12-18-2007
hello

I'm trying to rename the aspsmartupload filename but having issues.

Set mySmartUpload = Server.CreateObject("aspSmartUpload.SmartUpload")
mySmartUpload.Upload
set mySmartUpload.Files.Item(1).FileName = mySmartUpload.Form("year") &
mySmartUpload.Files.Item(1).FileName



this is the error I get

Microsoft VBScript runtime error '800a01a8'

Object required: 'FileName'

the filename will write to the screen with no problems, as well, I tried
assigning a simple string to the filename but with no success.

Can you even change mysmartupload data? I hoped you could.

any insight would be most appreciated

Thank You


 
Reply With Quote
 
 
 
 
s_m_b
Guest
Posts: n/a
 
      12-20-2007
=?Utf-8?B?VG9kZA==?= <(E-Mail Removed)> wrote in
news:(E-Mail Removed):

I use this to process files.

Set fileUpload = Server.CreateObject("aspSmartUpload.SmartUpload")
........
fileUpload.Upload
........
For each fileUploaded In fileUpload.Files
..........
strfilename = trim(fileUpload.Files.item(1).filename)
..........
strfileFullname = fileUploaded.name
..........
fileUploaded.Saveas (strPubHoldingFolder & "\" & strFileName)
..........
next

........
This allows you to alter the name of the uploaded file if you want.
Its just a snippet from a much more involved loop (hence the ......) so
I've not dim'ed and there is no error trapping!
Its worth pointing out that this component has long since been
discontinued.


> hello
>
> I'm trying to rename the aspsmartupload filename but having issues.
>
> Set mySmartUpload = Server.CreateObject("aspSmartUpload.SmartUpload")
> mySmartUpload.Upload
> set mySmartUpload.Files.Item(1).FileName = mySmartUpload.Form("year") &
> mySmartUpload.Files.Item(1).FileName
>
>
>
> this is the error I get
>
> Microsoft VBScript runtime error '800a01a8'
>
> Object required: 'FileName'
>
> the filename will write to the screen with no problems, as well, I tried
> assigning a simple string to the filename but with no success.
>
> Can you even change mysmartupload data? I hoped you could.
>
> any insight would be most appreciated
>
> Thank You
>
>
>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Data Storage Issue (Basic Issue) Srini Java 11 06-01-2008 01:17 AM
Problem with path for mySmartUpload Brossyg ASP General 3 02-06-2008 04:46 PM
Service Pack 2: login issue's and power management issue's ?!? Skybuck Flying Windows 64bit 0 04-07-2007 03:12 PM
inspiron 8200 video issue and hd issue the pez lover Computer Support 1 02-05-2007 02:44 AM
Major ActiveX Domain issue. NOT LOCAL PC ISSUE joe.valentine@gmail.com Computer Support 8 02-06-2006 09:03 PM



Advertisments