Upload picture and text to ISP web server

  • Thread starter Thread starter skc
  • Start date Start date
S

skc

I have a database driven website that displays text as
well as pictures.

I update the site once a week over dial-up and it is
taking a long time to upload the whole site (total
refresh) just for the sake of a couple of new items.

I want to create a form (protected by a password), that
will allow me to update the database with the wordings and
the name of the image file. I then want a Browse button
so that I can upload my image from my HDD to the ISP's
server so that i can overcome the problem of re-publishing
each time.

Can this be done easily?

Any pointers on how to do this...also some links on how to
set all of this up?

skc
 
skc said:
I have a database driven website that displays text as
well as pictures.

I update the site once a week over dial-up and it is
taking a long time to upload the whole site (total
refresh) just for the sake of a couple of new items.

I want to create a form (protected by a password), that
will allow me to update the database with the wordings and
the name of the image file. I then want a Browse button
so that I can upload my image from my HDD to the ISP's
server so that i can overcome the problem of re-publishing
each time.

Can this be done easily?

Any pointers on how to do this...also some links on how to
set all of this up?

skc

You need to choose "upload changed pages" or something to that effect - therefore
it will only upload the page/s you changed.

FP2002 has the file-upload capability under Insert > Form choose "file upload"

Be aware you need the FP 2002 extensions - early versions don't support the file
upload feature. No doubt you can also integrate that 'file' field into your
database (is it a FP/access/ASP database or flat file etc etc).

but there are cgi scripts from other sources that could do the job you just need
to have a search around the 'net.
 
Can this be done easily?

No. It can be done, however. You have several hurdles to overcome. First is
uploading a file. To do that, you need to use an "input type=file" HTML form
element. This renders a text box with a browse button next to it, and
enables the browser to fetch the file you browse to and add it to the Form
POST request. In addition, the form's encoding type ("enctype" attribute of
the form) must be set to "multipart/form-data".

The next hurdle to vercome is how to handle the Form POST on the server.
There are a number of ways to do this. You can use ASP, but when you set the
encoding type of the form to "multipart/form-data" the ASP ISAPI is no
longer able to read the Request parameters. So, if you use ASP, you need a
COM object (such as SAFileUp from www.softartisans.com) to do the upload.
You can use ASP.Net as well, which contains a number of classes which make
file uploading relatively easy. Or, if you're not hosted on a Windows
server, you would have to look into non-Microsoft server-side technologies
to do this.

In any case, it's going to require some custom programming on your part to
do it.

Good luck!

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.
 
Back
Top