ASP Upload Files

PHTech

Senior Member
Joined
Aug 21, 2006
Messages
588
Reaction score
0
Location
Witbank
Hi there...

Is there a SIMPLE script for uploading files to a folder using ASP...?

I have managed to create a FORM for the browsing of the file:

Code:
<form method=POST name=form1 action=upload.asp enctype='multipart/form-data'>
<p>
     <input type=file name=filename>
</p>
<p>
     <input type=submit value='Upload File'>
</p>
</form>

Now, from here - What script can I add to the upload.asp file for it to save files to a folder on a server. Lets say, I want to save files to: "C:\Users\Username\Documents\local_sites\XCSA_Intranet\pages\sap\repository\"

It can be REALLY a simple script, as long as it is working... This file-upload can upload any file with any file size, so there is no restriction neccessary at this stage.

THANX...!
 
Hi there...

Is there a SIMPLE script for uploading files to a folder using ASP...?

I have managed to create a FORM for the browsing of the file:

Code:
<form method=POST name=form1 action=upload.asp enctype='multipart/form-data'>
<p>
     <input type=file name=filename>
</p>
<p>
     <input type=submit value='Upload File'>
</p>
</form>

Now, from here - What script can I add to the upload.asp file for it to save files to a folder on a server. Lets say, I want to save files to: "C:\Users\Username\Documents\local_sites\XCSA_Intranet\pages\sap\repository\"

It can be REALLY a simple script, as long as it is working... This file-upload can upload any file with any file size, so there is no restriction neccessary at this stage.

THANX...!


google is your friend...
 
Can't seem to find a simple script for doing this...! Dreamweaver CS4 doesn't have anything to help me with this... Is there really NOTHING out there or someone who have used something similiar...?
 
ASP.NET has it built in. For Classic ASP you will need either a serverside script that can only handle smallish files or an COM component.
 
OK... So classic ASP is also as crap as Dreamweaver, as you can't do about nothing with them...!!! I have searched the whole freakin web about and still can't find any script for ASP which will cater for my needs...! Still waiting for my VS2008...!!! I am getting really frustrated with this...!
 
Well, .NET has most of the normal "scripts" built into the comprehensive framework already. You just have to use what's already written! ;) Classic ASP isn't crap, just a bit, well, old. .NET v1.0 was released something like 8 or 9 YEARS ago, so its safe to assume you should have started converting classic ASP apps to .NET a good 4 years ago (at least).
 
OK... So ASP is old, and Dreamweaver CS4 doesn't have ANY support for the .NET framework... Interesting how Adobe does that kind of stuff, and calls CS4 the "Best Website Development Software"... Just a random thought though...

OK... So no I am still waiting for my VS2008 package to arrive, and up to then, well... I must just be patient...!
 
For this, you need to load the FileUploader class... The thing is, that I need something really simple, as I can't add classes onto the webserver I am using...

Have tried this link, but the 2nd line it starts giving me a problem...

Thanx anyways...

The FileUploader class is an uncompiled ASP page that is an include page on top of the page referencing the code instantiating it and using it. So you don't need to upload a dll or register anything weird on the web server

I seriously suggest you learn more about programming before switching technologies. Sure classic ASP is old, but coming from a dreamweaver "developing" environment you still have a ways to go.

Class Something

Do some OO programming

End Class


^^ can be included ANYWHERE as text and can be instantiated by:

Set myobj = Server.CreateObject("Something") if I'm not mistaken (I might be)

Switching to ASP.NET now with your limited knowledge now will actually make it more difficult getting to the end goal. Not impossible, just more difficult. gl
 
Top
Sign up to the MyBroadband newsletter
X