Jump to content

Allowing User Uploads of Images... Securely


PDX_Doug

Recommended Posts

Good morning everybody,

 

First off, I will state openly and freely that I am a total newbie at PHP and MySQL coding. I'm reading lots of books, following every forum I can find and taking classes, but the bottom line is I'm very green behind the ears!

 

I am currently in the process of building a website that will - among other things -allow members to upload images. I have seen in a number of sources that this can be a dangerous thing, and requires careful security planning and coding. I think I pretty much get the basics of validating other data (text, dates, etc.), but am really at a loss on how to deal with images.

 

Can anybody offer any information about what I need to be doing (and better how to do it!)? I'm not asking for anyone to write my code for me, but to point me in the right direction.

 

I have also heard that it is not a good idea to store the images in the database table that contains other data related to the upload. That it is better for the table to contain a link to the image stored which is stored in another directory. Is this the correct way of going about things?

 

Thank you in advance for any help you can give. As I said, I'm a newbie now... but I'm trying!

 

Thanks,

Doug

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.