Jump to content

Different methods of uploading files to site


RottenBananas

Recommended Posts

Hey,

    I want to make a website where many users will be uploading many many many files. Videos pictures music and others.

 

The two methods I came across where uploading the actual file into the database or uploading the file to the server and keeping a reference of it in the database.

 

Is there a difference in terms of performance for the two methods? Is there any difference at all? Which would be better for me if my site were to have thousands and thousands of files uploaded and i wanted to be able to stream them back?

 

If the second method is better can you point me in the right direction of getting it accomplished?

 

Thanks

If you upload it to the database, you're using a huge amount of space, and it won't be (well, comparatively) a very fast retrieval. If you just put it on the server, all the code has to do is point the user to that. Basically, putting it on the server is easier. And if you structure it cleverly, you may find you don't even need database references.

 

----------------

Now playing: Lostprophets - A Town Called Hypocrisy

via FoxyTunes

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.