473,804 Members | 2,215 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASPSmartUpload Question

cam
Hi:

How can I rename the file being uploaded using ASPSmartUpload?

I can set the other parameters ok, just looking for the syntax to rename the file.

E.G. User uploading GIF file. I'd like to rename the file 'test.gif'

********

<%
Dim mySmartUpload
Set mySmartUpload = Server.CreateOb ject("aspSmartU pload.SmartUplo ad")
mySmartUpload.A llowedFilesList = "gif"
mySmartUpload.M axFileSize = 65000

mySmartUpload.U pload

'**MISSING CODE TO RENAME FILE TO test.gif**

mySmartUpload.S ave("/data/")

Response.Write( "File uploaded.")

%>
Jul 19 '05 #1
3 6942
According to their documentation (http://www.aspsmart.com/aspSmartUpload/),
you use the SaveAs method.

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"cam" <ca******@telus .net> wrote in message
news:43******** *************** ***@posting.goo gle.com...
Hi:

How can I rename the file being uploaded using ASPSmartUpload?

I can set the other parameters ok, just looking for the syntax to rename the file.
E.G. User uploading GIF file. I'd like to rename the file 'test.gif'

********

<%
Dim mySmartUpload
Set mySmartUpload = Server.CreateOb ject("aspSmartU pload.SmartUplo ad")
mySmartUpload.A llowedFilesList = "gif"
mySmartUpload.M axFileSize = 65000

mySmartUpload.U pload

'**MISSING CODE TO RENAME FILE TO test.gif**

mySmartUpload.S ave("/data/")

Response.Write( "File uploaded.")

%>

Jul 19 '05 #2
cam
Hi:

I've tried the 'saveas' method but no luck. Do you have a specific
snippet of code that I can lookat to upload a single file, & rename
it?

Thanks.

Cam
Jul 19 '05 #3
No, but their web site does. You really should consider using the
documentation for 3rd party components, instead of relying on other people
writing snippets for you. It's amazing what you can learn through trial and
error...

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"cam" <ca******@telus .net> wrote in message
news:43******** *************** ***@posting.goo gle.com...
Hi:

I've tried the 'saveas' method but no luck. Do you have a specific
snippet of code that I can lookat to upload a single file, & rename
it?

Thanks.

Cam

Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
13848
by: Jake | last post by:
Hi group, I am trying to build a page that allows uploading My ISP only supports Smartupload I am testing on a small hubbed local network, with PWS Any help is appreciated. --------------------- 'rqstupl.asp contents <HTML>
0
2417
by: Jake | last post by:
Hi All, > Hi experts, > > I am trying to build a page that allows file uploading from a browser > My ISP where the page will be located, only supports Smartupload > I am testing on a small hubbed local network, with PWS > Any help is appreciated. > --------------------- > 'rqstupl.asp contents
2
6113
by: SayMyName | last post by:
Due to my browser being danishm the error message will not mean much t most of you. It is an "Unspecified problem" with "Provide (0x80004005)" POST Data: error '80020009' The error only arrives with some apperently random files bein uploaded. Please Help
2
2586
by: SayMyName | last post by:
Due to my browser being danishm the error message will not mean much to most of you. It is an "Unspecified problem" with "Provider (0x80004005)" POST Data: error ''80020009'' The error only arrives with some apperently random files being uploaded. Please Help The codes being used for the upload is: Response.Write "<form method=""post"" action=""./item/upload.asp"""
0
1404
by: AdrianG | last post by:
Hi there, Does ASPSmartUpload work with the MacOSX Safari browser? One of my clients uses the Safari browser and the upload never works. The scripts work fine with IE and FireFox. Thanks
4
6263
by: david | last post by:
I am getting the following error: Error Type: ADODB.Field (0x800A0BB9) Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another. When this code snippet is executed.
1
2160
by: pook | last post by:
Error Type: Server object, ASP 0177 (0x800401F3) Invalid class string <% set up = Server.CreateObject("aspsmartupload.smartupload") up.upload '---------temp data %>
2
6027
by: MitchellEr | last post by:
Hi, I've seen various forum posts that mention the ability to set ASPSmaryUpload's Codepage property in order to handle UTF-8 and other character encodings. Example: http://www.thescripts.com/forum/thread102044.html I'd like to set this property so that foreign characters in form submissions are posted correctly especially for text fields. When I try doing it, I receive the following message: Microsoft VBScript runtime (0x800A01B6)...
4
5276
by: =?Utf-8?B?VG9kZA==?= | last post by:
I am using Windows XP and have registered the aspsmartupload dll and moved it into the system32 directory. I get the following error Error Type: Microsoft OLE DB Provider for ODBC Drivers (0x80070005) General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x918 Thread 0xa90 DBC 0x96768d4 Jet'.
0
9714
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10600
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10350
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10351
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10096
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6866
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5534
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4311
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3834
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.