Re: form to email document
- From: "Glenn" <nospam@xxxxxxxxx>
- Date: Wed, 31 Aug 2005 22:14:02 -0400
Thanks, but where can I find directions on how to do this?
"Kevin Spencer" <kevin@xxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:O8X%23NijrFHA.2272@xxxxxxxxxxxxxxxxxxxxxxx
> Hi Glenn,
>
> You can avoid duplicates by different users by assigning a file name to
> the file uploaded. There are several ways to make this file name unique,
> depending upon how you want the program to behave. Here are some
> suggestions:
>
> 1. If the users are logging in, you can grab the user's login ID, and
> create a folder for each user, under a parent folder for all user images.
> Save each user's images to their own folders.
> 2. If not logging in:
> a. If you want each user to be able to overwrite their images, you can
> append the Session ID for that user Session to the file name. This way, no
> other user Session (including future Sessions started by the same user)
> can overwrite the file. But during each user's Session, they can re-upload
> and overwrite their own files.
> b. If you are not worried about duplicated images (via re-upload) from
> the same user, you can simply append an incrementing number to each file
> name uploaded.This can come from a simple text file or a database.
> Alternatively, if you want to store the image information in a database,
> when the image is uploaded, store the actual image file name in the
> database, in a table that has an AutoNumber field in it. Then re-name the
> image file by appending the record's ID to the file name. The image can
> then be fetched from the file system using the database, by querying the
> database for the record ID and file name, appending them, and retrieving
> the file. This way you can (if your program needs to) display the original
> file name to the user in a browser.
>
> --
> HTH,
>
> Kevin Spencer
> Microsoft MVP
> .Net Developer
> Neither a follower nor a lender be.
>
> "Glenn" <nospam@xxxxxxxxx> wrote in message
> news:ulsHI$hrFHA.1168@xxxxxxxxxxxxxxxxxxxxxxx
>> I've never worked with PHP or CGI. I've donea little ASP, but am still
>> very much a rookie.
>>
>> I was hoping for something like the procedure used to upload a form, send
>> an email, write to a database.......there's a KB article on that, and I
>> can do that type of thing no problem. I could just do it that way, but I
>> would prefer not to because I believe that if by chance two different
>> users have a file with the exact same name, the first one would get
>> erased when the second one is uploaded and I'd miss it.
>> "Kevin Spencer" <kevin@xxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:%23O0U54hrFHA.3788@xxxxxxxxxxxxxxxxxxxxxxx
>>> Hi Glenn,
>>>
>>> How are your programming skills? You could do this by writing a custom
>>> ASP (or PHP, CGI, or whatever is available on your hosted server) form
>>> handler. It requires some server-side programming skill to do so.
>>>
>>> --
>>> HTH,
>>>
>>> Kevin Spencer
>>> Microsoft MVP
>>> .Net Developer
>>> Neither a follower nor a lender be.
>>>
>>> "Glenn" <nospam@xxxxxxxxx> wrote in message
>>> news:u0ynA2hrFHA.2064@xxxxxxxxxxxxxxxxxxxxxxx
>>>> Hi,
>>>>
>>>> Is there a way to have a user fill out a form, browse their computer to
>>>> find a document and have it emailed along with the form to a designated
>>>> user?
>>>>
>>>> I've seen the white page on how to upload a file to a website using a
>>>> form and to receive an email at the same time, but I haven't seen how
>>>> to do this.
>>>>
>>>> Could someone please let me know if it's possible, and if so point me
>>>> to some directions?
>>>>
>>>> Thanks!
>>>>
>>>
>>>
>>
>>
>
>
.
- Follow-Ups:
- Re: form to email document
- From: Kevin Spencer
- Re: form to email document
- Prev by Date: sreen size
- Next by Date: Pages corrupted
- Previous by thread: sreen size
- Next by thread: Re: form to email document
- Index(es):
Relevant Pages
|