Hello, i have this upload script,
works fine, ik kan upload multiple files to my server,
but i want them to be saved under a different namen on the server.
My form has 4 file fields and i want the filenames to be
field1.jpg, field2.jpg, field3.jpg & field4.jpg
How can I do this ?
Greetings Willem
<%
Set Upload = Server.CreateObject("Persits.Upload")
'Count = Upload.Save("/cgi-bin")
Count = Upload.SaveVirtual("/cgi-bin/foto")
Response.Write Count & " Bestand(en) Ge-upload naar Photography2day.com"
%> 3 3571 www.aspupload.com
--
Regards
Steven Burn
Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
Disclaimer:
I know I'm probably wrong, I just like taking part ;o)
Willem van Isselmuden <is****@om.nl> wrote in message
news:bv**********@news2.tilbu1.nb.home.nl... Hello, i have this upload script,
works fine, ik kan upload multiple files to my server, but i want them to be saved under a different namen on the server.
My form has 4 file fields and i want the filenames to be field1.jpg, field2.jpg, field3.jpg & field4.jpg
How can I do this ?
Greetings Willem
<%
Set Upload = Server.CreateObject("Persits.Upload")
'Count = Upload.Save("/cgi-bin")
Count = Upload.SaveVirtual("/cgi-bin/foto") Response.Write Count & " Bestand(en) Ge-upload naar Photography2day.com"
%>
oke thanx, but then I have another question,
all the path are c:\blabla, but why on c ? thats my local drive?
i want it to go to my cgi-bin/foto
greetings Willem
"Steven Burn" <nobody@PVT_it-mate.co.uk> schreef in bericht
news:u2**************@TK2MSFTNGP10.phx.gbl... www.aspupload.com
-- Regards
Steven Burn Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
Disclaimer: I know I'm probably wrong, I just like taking part ;o)
Willem van Isselmuden <is****@om.nl> wrote in message news:bv**********@news2.tilbu1.nb.home.nl... Hello, i have this upload script,
works fine, ik kan upload multiple files to my server, but i want them to be saved under a different namen on the server.
My form has 4 file fields and i want the filenames to be field1.jpg, field2.jpg, field3.jpg & field4.jpg
How can I do this ?
Greetings Willem
<%
Set Upload = Server.CreateObject("Persits.Upload")
'Count = Upload.Save("/cgi-bin")
Count = Upload.SaveVirtual("/cgi-bin/foto") Response.Write Count & " Bestand(en) Ge-upload naar Photography2day.com"
%>
Upload.Save(Server.MapPath("cgi-bin/path"))
Without Server.MapPath, it treats it as a local path, not a virtual one.
--
Regards
Steven Burn
Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
Disclaimer:
I know I'm probably wrong, I just like taking part ;o)
Willem van Isselmuden <is****@om.nl> wrote in message
news:bv**********@news3.tilbu1.nb.home.nl... oke thanx, but then I have another question,
all the path are c:\blabla, but why on c ? thats my local drive? i want it to go to my cgi-bin/foto
greetings Willem
"Steven Burn" <nobody@PVT_it-mate.co.uk> schreef in bericht news:u2**************@TK2MSFTNGP10.phx.gbl... www.aspupload.com
-- Regards
Steven Burn Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
Disclaimer: I know I'm probably wrong, I just like taking part ;o)
Willem van Isselmuden <is****@om.nl> wrote in message news:bv**********@news2.tilbu1.nb.home.nl... Hello, i have this upload script,
works fine, ik kan upload multiple files to my server, but i want them to be saved under a different namen on the server.
My form has 4 file fields and i want the filenames to be field1.jpg, field2.jpg, field3.jpg & field4.jpg
How can I do this ?
Greetings Willem
<%
Set Upload = Server.CreateObject("Persits.Upload")
'Count = Upload.Save("/cgi-bin")
Count = Upload.SaveVirtual("/cgi-bin/foto") Response.Write Count & " Bestand(en) Ge-upload naar
Photography2day.com" %>
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Amy Kimber |
last post by:
Hello all,
ok, I have a file upload secton to my site, two pages, one with a
form and one that does the uploading.... some files upload fine, other
don't
an exe of 300k will upload, but a...
|
by: Amy Kimber |
last post by:
Hello,
I have a file upload page, and I've had it working fine, it was
beautiful :-) Anyway, the powers that be moved hosts... and it doesn't
work now.
The file name is correct, the directory...
|
by: Joseph |
last post by:
Hi
I'm writing a commercial program which must be reliable. It has to do
some basic reading and writing to and from files on the hard disk,
and also to a floppy.
I have foreseen a potential...
|
by: Richard L Rosenheim |
last post by:
Correct me if I'm wrong...
It appears that out of the 1800+ classes in the .Net framework, there isn't
a file rename method (discounting the rename function in the vb namespace).
And that the...
|
by: Bruce Russell |
last post by:
This may sound stupid but I can't rename the WebForm1.aspx in the
solution explorer.
The file is located in my local web server at
C:\Inetpub\wwwroot\Lab3-VB-Starter\WebForm1.aspx
Is there...
|
by: Steven D'Aprano |
last post by:
I want to rename a file, but only if the destination file name doesn't
already exist.
I can do this:
if os.path.exists(dest):
# skip file, raise an exception, make a backup......
|
by: spacehopper_man |
last post by:
no "rename" operation in C# !!!
- this has been covered in this group before, but I can't find any good
answers.
what I am trying to do is refresh the content in a file with minimum...
|
by: =?iso-8859-1?b?cultaQ==?= |
last post by:
Hi,
I would like to rename files (jpg's ones) using a text file containing the
new names...
Below is the code that doesn't work :
*****
#!/usr/bin/python
#-*- coding: utf-8 -*-
from os...
|
by: parthaspanda22 |
last post by:
How can I get to discard the contents of a text file from a specified
offset(
say, obtained from ftell)?
Sincerely.
|
by: vijayarl |
last post by:
Hi All,
Requirement :
1.read the content of the dir
2.seach for "prstat-Lvs" file
3.rename this file to *.txt (as this file doesn't have the file typeextension --raw file)
4.open this *.txt...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
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...
|
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,...
|
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...
| |