Jump to content

Archived

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

Solarpitch

Storing Image into file?

Recommended Posts

Hi Guys,

Is it possible to upload images into a file on your web apllications folder and reference the file path in the database?

So the user will upload a profile photo, the photo will be stored in "c:\Webapps\Images" and this path possibly stored in $imgPath or something?

How could I achieve this? I am so lost it's not even funny!

Share this post


Link to post
Share on other sites
The DB doesn't know what you're storing in a text field, so sure, you could store the path there.  Personally, I would recommend storing a relative path to some base path that you have in your application for portability.

Share this post


Link to post
Share on other sites

×

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.