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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.