legLess has asked for the wisdom of the Perl Monks concerning the following question:
I'm writing a script which accepts a JPEG upload from a user and, after appropriate checks, stores it for later display. So far so good, thanks in large part to the time I've spent here.
But a little knowledge is a dangerous thing, and I know just enough programming to realize I don't know how best to store or organize these files. Here's what I know (or think I know):
From a programming class I took yon these many moons ago (not my degree, obviously), I remember using hash structures for storing and retrieving data. My sense is that this would be overkill for what I need. I'm never going to search these directories, since the database will always know exactly where every image is.
Does anyone have any insight or suggestions?
Thanks!
--
man with no legs, inc.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Storing uploaded files for speed and efficiency
by suaveant (Parson) on Jul 31, 2001 at 19:30 UTC | |
by legLess (Hermit) on Jul 31, 2001 at 19:43 UTC | |
|
Re: Storing uploaded files for speed and efficiency
by tadman (Prior) on Jul 31, 2001 at 20:09 UTC | |
|
Re: Storing uploaded files for speed and efficiency
by Agermain (Scribe) on Jul 31, 2001 at 19:33 UTC | |
by legLess (Hermit) on Jul 31, 2001 at 19:47 UTC |