473,657 Members | 2,550 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASPUPLOAD + change upload folder.

Hi I am triyingo to upload a file with ASPUPLOAD which works fine the only
problem I need to change the folder where is going to be uploaded.

I tried with

folder = "\"+cstr(reques t.querystring(" folder"))
path=Server.Map Path("."&folder )

Set Upload = Server.CreateOb ject("Persits.U pload.1")
Upload.Overwrit eFiles = true
Upload.SetMaxSi ze 1048576
Count = Upload.Save (path)

But always uploads into the same folder (where the ASP is uploaded).

Any tip?

Cheers!

Mar 14 '06 #1
1 1728
JimmySlam wrote:
Hi I am triyingo to upload a file with ASPUPLOAD which works fine the only
problem I need to change the folder where is going to be uploaded.

I tried with

folder = "\"+cstr(reques t.querystring(" folder"))
path=Server.Map Path("."&folder )

Set Upload = Server.CreateOb ject("Persits.U pload.1")
Upload.Overwrit eFiles = true
Upload.SetMaxSi ze 1048576
Count = Upload.Save (path)

But always uploads into the same folder (where the ASP is uploaded).

Any tip?

Cheers!


What does path contain? Use a response.write to show it, don't guess. If
the path really exists, does it have write permission?
MikeR
Mar 18 '06 #2

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

Similar topics

3
3270
by: John Rebbeck | last post by:
(sorry about cross posting but I really need help with this and it fits in both newsgroups) I'm creating a little image manager and I'm using Persits ASPUpload. I have an UploadButton and DeleteButton which are both submits. Normally I would do: code:----------------------------------------------------------------------- -------
2
10586
by: | last post by:
I am using aspupload in a hosting environment. When testing the basic install of the component I am trying to use the default forms provided. When using the the first method as found at http://www.traceydonley.com/aspupload/02_simple/Form2.asp I receive the following error:Persits.Upload.1 error ''800a0028'' This feature has been disabled by system administrator. Use SaveVirtual instead.
1
1457
by: Lars | last post by:
Hi I don't know if this is the right forum but I need some help and advise. I want to create a form where I can enclose files from local disc and mail with CDONTS. I want to use a form including the following: Fill in a form with following fields:
6
4092
by: Vilmar Brazão de Oliveira | last post by:
HI; How can I rename a file with aspupload or FSO before upload? I looked for in documentation of these products, but I could not find anything yet! Thanks, -- ««««««««»»»»»»»»»»»»»»
2
2425
by: Vilmar Brazão de Oliveira | last post by:
Hi, How verify type or extension of file using ASPUPLOAD? I check documentation, but I didn't find anything else yet. thanks, -- ««««««««»»»»»»»»»»»»»» Vlmar Brazão de Oliveira Desenvolvimento Web
5
4970
by: Kelli | last post by:
Hi there, I'm wondering if someone can have a quick look at my code and see if there's anything that I've done wrong. This silly script is driving me crazy! <% DIM File, Upload, Count, Ext DIM Mail, strMsgHeader
8
2717
by: BigJohnson | last post by:
We're using ASPUpload as a tool to upload files to our server and save the details to SQLServer. However, I have an application where I need to return the pkID of the just saved file. I'm assuming that I could use the @@Identity command but cannot get this to function. Has anyone used this command with ASPUpload with an success, or any other methods that could be used? Thanks.
0
3141
by: hellind | last post by:
When the form is submitted as ENCTYPE="multipart/form-data" using AspUpload component, I understand to use Upload.form("") to retreive the form elements. But I cannot retreive it from inside a class. Anybody can help? The form page goes to upload.asp, where inside upload.asp it calls the class which reads the form element and return back the values. Here is the code of the class. Class pluginFileTransfer Public path,...
5
1311
by: the other john | last post by:
I'm not certain that what I'm asking is an AspUpload question or just a VBScript question. I am uploading a story with up to 3 pictures. Each picture uploads using aspupload with no problems. What I need to do is while iterating through the for each loop for each picture I need to identify each picture as "picture_1", "picture_2", "picture_3" in the database. When the story is called it will deliver 3 pictures in specific places so I...
0
8425
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
8326
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8845
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
8743
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...
0
7355
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6177
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5647
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
4333
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1973
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.