Re: Changing file name

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Not a solution again though Cor


"Cor Ligthert [MVP]" <notmyfirstname@xxxxxxxxx> wrote in message
news:OtFQW1yIHHA.780@xxxxxxxxxxxxxxxxxxxxxxx
Bonzol,

For the file upload it is very important what method you use on the Server
side.
There is no standard method for that.

(Asp)Net has as least 2 classes for that, using those you can sure after
the
upload change the dataname or the file path (or Database) were you want to
store it.

Therefore show the serverpart so we see how you handle the input/file

Cor

"Bonzol" <Bonzol@xxxxxxxxxxx> schreef in bericht
news:1166502529.878917.257970@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Vb.net 2003, Web application
Hey all!

Just a quick question.

I have a site which allows users the ability to upload files by the
HTML brows button control.

My question is if a user submits a file,, and every file they submit I
want my code to change the name of it.. So say the user submits
'Hello.txt'. When they press submit I want it to be changed to
'Hello1.txt'. I tried just changing the name but it stopped the file
from working. Or also. what commands does one use to just change the
name of a selected file on the local machine?

Any help would be greatly appreciated.

Thanx in Advance
Chris





.



Relevant Pages

  • Re: OpenFile Dialog in ASP.Net
    ... I will not any events from File upload control after selecting the file. ... assmue it is server side code. ... Try to test your ASP.NET app from other computer's browser (that ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: File upload from client application (non-form based upload)
    ... server that has been POST'ed from a client application. ... this is similar to handling a file upload from an HTML ... What I need is a Python equivalent of the the above PHP script. ...
    (comp.lang.python)
  • Re: File upload broken in default site.
    ... You need to use the steps in the KB article on your Windows Server w/ the FP 2002 SE installed and File Upload enabled by your host ... |>"Fred King" wrote ... |>| This is on a fresh install of FPSE, SPTS, and other ...
    (microsoft.public.frontpage.client)
  • Repost: File Upload Folder Properties (WAS: FP2003 on W2K Server)
    ... Eventually I will transfer to the remote server, but for now I am doing ... The host and the development machine are the same. ... able to open the site, insert the file upload form, and create the file ... > Microsoft MVP - FrontPage ...
    (microsoft.public.frontpage.programming)
  • Re: Changing file name
    ... For the file upload it is very important what method you use on the Server ... There is no standard method for that. ... HTML brows button control. ...
    (microsoft.public.dotnet.languages.vb)