I am in the process of designing a portion of a website that will allow users to convert documents to a particular format by either:
- Point to a file resource via URI (i.e. http://www.foo.com/foo.pdf)
or
- Upload a file to the server for server-side conversion
When the server is pointed to a remote resource, I can convert that, and this part works today without any problems.
I want to add the capability of having the users upload a file from their local system to the server for conversion (limited by $maxsize, of course). The hitch here is that I need to provide a way for the users to be able to delete the file from the server after they've uploaded it. I don't want to deal with the hassle (or risk) of housing their data on my server, or that they think it's insecure (we all know it is).
Yes, I could easily just copy the file where the script can't find it at deletion time, and they'd "think" it was deleted, but I'm not maliscious like that. It's a matter of policy as well as implementation.
Has anyone done something like this? I have a few approaches:
- Common upload/ftp directory, bad.
- Browser-based file upload with browser-based deletion
- Login:pass authentication to their "account" on the server, where their uploaded files exist (something like FreeDrive or similar places) and then they can add/delete into their "account" as necessary.
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.