Re: form to email document

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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!
>>>>
>>>
>>>
>>
>>
>
>


.



Relevant Pages

  • Re: form to email document
    ... >> append the Session ID for that user Session to the file name. ... >> name uploaded.This can come from a simple text file or a database. ... >>> I was hoping for something like the procedure used to upload a form, ...
    (microsoft.public.frontpage.programming)
  • Re: form to email document
    ... append the Session ID for that user Session to the file name. ... Alternatively, if you want to store the image information in a database, ... > I was hoping for something like the procedure used to upload a form, ...
    (microsoft.public.frontpage.programming)
  • Re: inserting images into mysql database using matlab
    ... I would like to know how to insert images into mysql database and how to retrieve and display the inserted images. ... // declare a connection by using Connection interface Connection connection = null; ... /*declare a resultSet that works as a table resulted by execute a specified sql query. ... System.out.println("unsucessfull to upload image."); ...
    (comp.soft-sys.matlab)
  • Re: inserting images into mysql database using matlab
    ... First create database named 'anju' by query given below: ... // declare a connection by using Connection interface ... /* executeUpdate() method execute specified sql query. ... System.out.println("unsucessfull to upload image."); ...
    (comp.soft-sys.matlab)
  • Re: I lose data, when I try to save a loaded DataTable on the click of another button in an asp.net
    ... that allows for the upload of an excel sheet into the database. ... I have an upload button and a save button. ... which is bound to a GridView for previewing before ... protected void Upload_Click(object sender, EventArgs e) ...
    (microsoft.public.dotnet.languages.csharp)