uploading student images

D

Don Althaus

I am writing to ask some advice on the cleanest, easiest way to allow
students to upload image files (.jpg) to a specific directory on my web
server. I have a cgi script processing quiz forms that works, but I am at a
loss as to how to have them upload image files. I have tried various
JavaScript scripts to no avail (probably because I don't know how to use
them). My web server is Linux based but does have FrontPage extensions
enabled. Here is what I would like to do, if possible-

1. Set up a form that will allow students to upload image files only to a
directory on the server that will be called "upldfile."
2. Have a way to check the file to make sure it is a .jpg file.
3. Have a way to make sure the file size is less that a certain maximum
specified- propably 100K.
4. Have a confoirmation page that says "thanks for uploading."

I have no problem specifying a browser if necessary, but some students in my
classes are still working with highly restricted computers. One student's
machine is an AMD K-5, 16 megs of ram running Win98se with IE 5.5- and this
student simply can't afford to purchase a different computer- single mom
with 2 kids attending classes full time and working full time- so any
solution will have to take a wide variety of equipment into consideration.

A little background-
The school I teach at is in the process of investigating various ways to
move classes into total internet presentation or to provide web enhancement.
Although this has not hit my program yet, I feel it is coming in the near
future and to be ready is better than having to scramble. We have Blackboard
and that works okay, but by the report of a number of students who are
tasking Blackboard based classes, the system is not working well. Often it
is unavailable, etc. I would suspect this is not a problem with Blackboard
but with our system. In this case, I feel strongly that any system I can
develop not using the school's system is an advantage.

Any help or guidance would be greatly appreciated. I am using FrontPage
2002.

-Don Althaus
(e-mail address removed)
 
T

Thomas A. Rowe

If the server has the FP2002 extensions, you can create a form that allows
files to be uploaded, however you can not control the file size or file type
that can be uploaded, you do have control over the folder that be used to
allow uploads.

To have full control, you will need to locate a server-side script written
in CGI-Perl or PHP (if supported) to process the uploads. If you were hosted
on Windows IIS server, there are a number of ASP upload component that can
everything you want. I only work with Windows based servers, so I can not
recommend any resources for the Unix/Linux environment, but you should be
able to locate something, if you can't live with the FP Form Upload
component.

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 
A

Andrew Murray

Don Althaus said:
I am writing to ask some advice on the cleanest, easiest way to allow
students to upload image files (.jpg) to a specific directory on my web
server. I have a cgi script processing quiz forms that works, but I am at a
loss as to how to have them upload image files. I have tried various
JavaScript scripts to no avail (probably because I don't know how to use
them). My web server is Linux based but does have FrontPage extensions
enabled. Here is what I would like to do, if possible-

1. Set up a form that will allow students to upload image files only to a
directory on the server that will be called "upldfile."
2. Have a way to check the file to make sure it is a .jpg file.
3. Have a way to make sure the file size is less that a certain maximum
specified- propably 100K.
4. Have a confoirmation page that says "thanks for uploading."

I have no problem specifying a browser if necessary, but some students in my
classes are still working with highly restricted computers. One student's
machine is an AMD K-5, 16 megs of ram running Win98se with IE 5.5- and this
student simply can't afford to purchase a different computer- single mom
with 2 kids attending classes full time and working full time- so any
solution will have to take a wide variety of equipment into consideration.

A little background-
The school I teach at is in the process of investigating various ways to
move classes into total internet presentation or to provide web enhancement.
Although this has not hit my program yet, I feel it is coming in the near
future and to be ready is better than having to scramble. We have Blackboard
and that works okay, but by the report of a number of students who are
tasking Blackboard based classes, the system is not working well. Often it
is unavailable, etc. I would suspect this is not a problem with Blackboard
but with our system. In this case, I feel strongly that any system I can
develop not using the school's system is an advantage.

Any help or guidance would be greatly appreciated. I am using FrontPage
2002.

-Don Althaus
(e-mail address removed)


Frontpage has the upload file form component - which will only work with the FP
extensions, or with 3rd party perl/cgi scripts.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top