Click here to get back home

Problem with forms - user uploaded files being overwrtten

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Problem with forms - user uploaded files being overwrtten Ted 06-22-2005
Get Chitika Premium
Posted by Ted on June 22, 2005, 3:11 pm
Please log in for more thread options


Hi...

I've created a form via front page 2000 that includes an UPLOAD FILE
field for users to upload a .jpg as part of the form.

The problem I'm running into is that one user submits a file named,
let's say, ABC.jpg...fine...that file is stored in a folder on the
hosting space. Then, if a second person comes along and submits a file
with the same name "ABC.jpg", the original file is replaced with the
new one.

Any ideas? Does FP has a built-in feature to solve this problemt that
I'm not seeing?

Maybe a way to associate each picture with each form...

Note: When I created the storage folder for the pictures I
"right-clicked>>properties" on it in FP and all the checkboxes were
greyed out. So i guess it's defaulting to its own settings.

Thanks...


Posted by Adrienne on June 23, 2005, 6:10 am
Please log in for more thread options



> Hi...
>
> I've created a form via front page 2000 that includes an UPLOAD FILE
> field for users to upload a .jpg as part of the form.
>
> The problem I'm running into is that one user submits a file named,
> let's say, ABC.jpg...fine...that file is stored in a folder on the
> hosting space. Then, if a second person comes along and submits a file
> with the same name "ABC.jpg", the original file is replaced with the
> new one.
>
> Any ideas? Does FP has a built-in feature to solve this problemt that
> I'm not seeing?
>
> Maybe a way to associate each picture with each form...
>
> Note: When I created the storage folder for the pictures I
> "right-clicked>>properties" on it in FP and all the checkboxes were
> greyed out. So i guess it's defaulting to its own settings.
>
> Thanks...
>
>

The way I do it is I create a folder for each user, and store the image in
that folder. That way, if a user wants to replace or update the image,
they can.

For example:
stores\images
stores5\images

Then based on the userid, I can pull that path to the image from the
database to show on the page.

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

Posted by Ted on June 23, 2005, 12:06 am
Please log in for more thread options


Thanks Adrienne...

You do that with a script of some kind, right?

Does FP have a feature like that built-in?


Posted by Adrienne on June 23, 2005, 7:47 am
Please log in for more thread options



> Thanks Adrienne...
>
> You do that with a script of some kind, right?
>
> Does FP have a feature like that built-in?
>

I doubt it, and even if it did, I have heard that FP really mucks up
scripts badly.

You want to look into server side language, ASP, PHP are not that
difficult really. You will also need some sort of database, I recommend
MySQL. W3Schools <http://www.w3schools.com> has some good beginner
tutorials on both server side languages, and SQL (Structured Query
Language) used for database queries and updates.

I would also get rid of FP. Get yourself a good plain text editor with
syntax highlighting. I can recommend HTML-Kit
<http://www.chami.com/html-kit> because it has many server side and
database plugins available.

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

Posted by Ted on June 23, 2005, 1:10 pm
Please log in for more thread options


Thank you

Adrienne wrote:
>
> > Thanks Adrienne...
> >
> > You do that with a script of some kind, right?
> >
> > Does FP have a feature like that built-in?
> >
>
> I doubt it, and even if it did, I have heard that FP really mucks up
> scripts badly.
>
> You want to look into server side language, ASP, PHP are not that
> difficult really. You will also need some sort of database, I recommend
> MySQL. W3Schools <http://www.w3schools.com> has some good beginner
> tutorials on both server side languages, and SQL (Structured Query
> Language) used for database queries and updates.
>
> I would also get rid of FP. Get yourself a good plain text editor with
> syntax highlighting. I can recommend HTML-Kit
> <http://www.chami.com/html-kit> because it has many server side and
> database plugins available.
>
> --
> Adrienne Boswell
> http://www.cavalcade-of-coding.info
> Please respond to the group so others can share


Similar ThreadsPosted
Problem with downloading Word doc files and rtf files through browser January 25, 2005, 5:33 pm
problem with viewing .txt files in browser December 2, 2006, 4:31 am
DISABLED on HTML forms problem January 13, 2008, 12:39 pm
Help! Table acts stragely once uploaded December 28, 2005, 11:11 pm
Forms - howto use return for submitting in Forms? April 6, 2005, 4:08 pm
User editing September 22, 2006, 11:16 am
get user color schemes September 4, 2004, 5:02 am
User Scalable Text Using CSS? March 25, 2006, 10:03 am
how to display whatever the user types in a textarea November 17, 2005, 1:24 pm
Allow the user to increase font size December 2, 2005, 6:43 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap