PDA

View Full Version : Inserting Files - Can it be done?


sladmin
19-03-2007, 08:19 PM
Hey,

I need a way of allowing users to upload files to the web and storing either the file path on the server or the files themselves. Can I store files in a database?

If not does anyone have any ways of uploading in ASP?

Thanks,

Piercy
19-03-2007, 08:32 PM
Hey,

I need a way of allowing users to upload files to the web and storing either the file path on the server or the files themselves. Can I store files in a database?

If not does anyone have any ways of uploading in ASP?

Thanks,

Easiest way to upload is using one of the built in coms that come with the hosting account such as ASPUpload. Have a look in the KB in support for example codes (click here) (http://support.csnewmedia.co.uk/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=44&nav=0,6)

Easiest way to do this is to upload to a single directory (domain/upload) then just capture the file name (myfile.jpg) in the db. When you then to make reference in your code to them you simple call the file name into your script e.g <img src=upload/"myfile.jpg"

Hope that makes sense if not give us a shout

sladmin
19-03-2007, 08:47 PM
Thanks Mark I did see those scripts in the knowledgebase (they have now been added to my own :p)

I took a look in the KB and saw the Dundas Upload. I looked at the code but unsure as to how to implement it. Can someone help me out please? Link for the kb article is here (http://support.csnewmedia.co.uk/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=34&nav=0,15,10).

Thanks,

Piercy
19-03-2007, 09:18 PM
Dundas Upload. I looked at the code but unsure as to how to implement it. Can someone help me out please? Link for the kb article is here (http://support.csnewmedia.co.uk/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=34&nav=0,15,10).



Is Dundas still supported? I am sure I had looked at it a while ago but could not get any help on it. :sad:

ASP Upload though is easy and there are easy to use help files and actual examples on their website

Ben Collier
19-03-2007, 09:21 PM
I personally use the asp.net 2.0 file upload control- have implemented it many times, currently I am developing one that uploads an image, creates a thumbnail in the database and stores the original image too.

All good fun!

Ben

sladmin
19-03-2007, 09:27 PM
Well I'm not sure if it's still supported all I know is that it was on the scripting list. I looked at asp upload but you have to pay for their latest version. It's so expensive and all I want to do is upload files lol

I can make out what the code does but its just implementing it into my application.

Carl Shepherdson
19-03-2007, 09:34 PM
We have both Dundas Upload and ASPUpload across all web servers:

Dundas Upload - Example Code here (http://support.csnewmedia.co.uk/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=34)

Nick Irvine
20-03-2007, 01:13 PM
There are a few superior php scripts here:

http://php.resourceindex.com/Complete_Scripts/File_Management/File_Uploading/