Uploading a local file to server

Discussion in 'Classic ASP' started by cgwp, Jun 5, 2008.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I'm migrating a site to DASP and have one significant hurdle left. In my previous environment I was able to upload and rename a local file to the server with a single command. I rename the file to remove funky characters that might exist on a mac but not on a pc, but more important to have a structure for the names which makes my life easier.

    The old system had an object that had a syntax like:

    myObject.upload localFileWithPath remoteFileWithPath

    In DASP, it looks like I can use AspUpload to copy the file to the server, but there is no option to rename it. There is an option to copy the file to memory and rename it there, but then we would either pre-limit the file size or chew up a lot of memory (files can be several hundred KB, some into several MB). This doesn't seem like an attractive option.

    Does anyone know of any other (supported) ways that I can upload and rename a file?

    Thanks

    marc
     
  2. Never mind. I figured it out.

    Thanks

    marc
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page