I'm converting an app from JSP to mason/mod_perl that allowed xls files to be uploaded and then hyperlinked them for later access. When I'd originally built the app, the customer had a limited number of reports and it made sense for me to set up a few columns in mysql to handle the three keyword columns (one keyword per), urls and display name for each file. I used the keywords to create the directory structure in the upload area. As part of the conversion, there is a change in requirements. The customer has decided he needs more/different granularity because he had more reports. Now different reports and resources have different numbers of keywords and things aren't as neat as they were and I'm wondering if there might be a better way to approach tracking the files.

My thought is, since I have a fetish for fully descriptive file and directory names, could I write a quick PM to travesrse the varying length directories, prettying up and capitaling the names and embedding them in hyperlinks to the next level to print out on the page. When I reach a leaf, I could extract the entire path and filename for the page title and the date from the filename for the hyperlink to the file.

OK, I guess the point of this.. other than it helps focus things in my head to try and explain them... is: How safe is this? Is this realistic from a a performance point of view? Of course, I'll regex all the input to make sure no one is trying to back door the system. Is there anything else I need to worry about?


--Jimbus aka Jim Babcock
Wireless Data Engineer and Geek Wannabe
jim-dot-babcock-at-usa-dot-com

In reply to Using the file system as a DB in a web app? by jimbus

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.