Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Browser-based file uploads and deletions for a

by kwoff (Friar)
on Nov 18, 2001 at 03:58 UTC ( [id://126060]=note: print w/replies, xml ) Need Help??


in reply to Browser-based file uploads and deletions for a

Does the file necessarily have to be stored on the server? I wouldn't rely on the user to delete the file. When you use CGI.pm, you get the uploaded data with a filehandle you read from like
while (<$upload_fh>) { $file_contents .= $_; }
Why do you need to store the file at all? Anyway, CGI.pm temporarily stores uploaded files in a /tmp directory (look for the -private_tempfiles "pragma" in `perldoc CGI`).

Replies are listed 'Best First'.
Re: Browser-based file uploads and deletions for a
by hacker (Priest) on Nov 18, 2001 at 05:26 UTC
    The users need to "know" that the file has been deleted. I don't want them claiming I'm keeping their files. Now we're back to policy over implementation though.

    "Do not upload files that you view as private or proprietary"

    I'll keep banging out some ideas. Thanks.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://126060]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2024-04-19 01:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found