"contact me" (or "help request") page with file attachment
Folks,
I'm sure that everyone have seen the "contact me" or "help request" pages where you fill in the request and it's sent via e-mail. Some of these pages even allow file attachments. Aside from Captcha, the user doesn't have to create an account or sign it.
I'm thinking how file upload would be implemented in this case. Multiple users may be composing e-mails simultaneously, and their files shouldn't get mixed up. One way to deal with this would be to create a separate folder for each e-mail being composed, give it a unique name (a GUID, perhaps), pass the name around in a hidden field. This sounds like creating a session and making this a stated affair.
Wondering if there are other/standard ways to tackle this?
Best,
- Nick
P.S. Newbie to web dev here.
Re: "contact me" (or "help request") page with file attachment
Are you looking for something like this?
Re: "contact me" (or "help request") page with file attachment
Quote:
Originally Posted by
Blagojce
Are you looking for something like
this?
Thanks for digging up an example. But, I don't understand how the files are kept separate when 2 different users create 2 different messages and upload files at the same time. Where do the files go?
Re: "contact me" (or "help request") page with file attachment
Each file is stored as attachment in each mail. If 2 users create 2 different messages, they create 2 different mails.
If you want to store files locally, you can create folder for each email (email'll be the name of the folder) and place files there.