Skip to main content
December 21, 2007
Question

How do you like to handle photos

  • December 21, 2007
  • 2 replies
  • 303 views
What you're preferred way of handeling photos uploaded to the server? Although you upload an image to the database itself, I've always added the URL to where it can be found, and upload the image to a folder.
This topic has been closed for replies.

2 replies

Inspiring
December 21, 2007

"jsteinmann" <webforumsuser@macromedia.com> wrote in message
news:fkfkbb$1ju$1@forums.macromedia.com...
> What you're preferred way of handeling photos uploaded to the server?
> Although
> you upload an image to the database itself,

No, you never want to upload an image to a database - that would just cause
a lot of bloat to the db.

>I've always added the URL to where
> it can be found, and upload the image to a folder.

Yes, that is a much preferred way. I only store info in a db about the
image(s) or other file(s). I have one field that stores the path to the file
and another field that stores the filename. That way if I have to move the
file to another location, it's just a quick process to change the info in
the path field.


Inspiring
December 21, 2007
> What you're preferred way of handeling photos uploaded to the server?
> Although
> you upload an image to the database itself, I've always added the URL to
> where
> it can be found, and upload the image to a folder.

I've always heard that the second method (the one you use) is the best
and keeps from bogging down the db.