PDA

View Full Version : Uploading and Downloading Files



dreamerp
November 6th, 2004, 05:59 PM
Hello,

Is it possible to upload files to a MySQL database or would they have to go to a certain directory. If someone could help me with a tutorial or something on how to upload it and then display the uploaded files and download them type of thing. All tutorials will help!


Peter

signifer123
November 6th, 2004, 06:09 PM
Hello in fact you can upload files with outa database thanks to some program i found out there

here is the file:
http://members.lycos.co.uk/signifer123/ecubes/store/fileupload.zip
just place the files in that to a web host that supports it and run the index.php as the main file and have fun

ol4pr0
November 6th, 2004, 07:10 PM
to the question "If it is possible to upload files to ure database"

Yes.!

ol4pr0
November 6th, 2004, 07:11 PM
Just store the file instead of the location

insert file :)

not insert location / path :) Thats about all there is it.

dreamerp
November 7th, 2004, 02:26 PM
Well, I didn't want to store the file in a directory, I wanted it in a database. Are there any tutorials that are pretty good for this situation. Or, if someone could explain briefly of the correct rows in the database and simple actions for the form, etc.

3rdeye
November 7th, 2004, 08:48 PM
storing the file IN the DB? hmmm well that sounds possible... but getting the info OUT would be the hard part... unless the file is really small, like text (but then why use a file?) The fact is mySQL (and other online DB) aren't really designed for large data retrieval, that's what the OS is for (which in essence is just another DB) let Linux or Windows take care of the large file handling... and just use mySQL for storing the location info, it will be much easier... and quicker, for you and the clients...

dreamerp
November 7th, 2004, 09:03 PM
Ok, so how would you go about uploading files to a directory and displaying them? Any tutorials and advice will help on everything :)

3rdeye
November 7th, 2004, 10:35 PM
in flash? using PHP? with a DB?

http://www.kirupaforum.com/forums/showthread.php?t=69762&highlight=upload+php

http://www.codingclick.com/print.php?aid=21

there are many more... it just takes some looking... I just finished a project with PHP u/l in flash so if you have any specific questions I might be able to help... oh yeah and check actionscript.org they have some great threads on the subject