File Upload - can't access the file name

J

Jackie

Hi all,

I'm trying to use the Frontpage File Upload to upload a file to the
server, then write a record to a database containing the file name and
some additional details.

I have the file upload working, and can display the uploaded file name
on the Upload confirmation page using the confirmation field
component.

The confirmation page contains a form for the user to enter additional
details about the file they've just uploaded. I wanted to be able to
have the uploaded file name in a hidden field, to pass with the form
to the next .asp page which will write to the database.

However, as the confirmation page is a .htm page I can't give the
hidden field the initial value of FP_SavedFields("filename").

The File Upload component won't work when I make the confirmation page
an .asp page.

Is there any way around this? I don't want to rely on the user
re-typing the field name, in case of errors.

Thanks,
Jackie
 
T

Thomas A. Rowe

Ask your host is they have a ASP upload component installed that you could use instead of the FP
component.

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

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
J

Jackie

Hi,

In knowledge base article 299763
(http://support.microsoft.com/default.aspx?kbid=299763&product=fp2002)
though, it says :

"Remember that the File Upload solution is limited in the sense that
you cannot extend the capabilities of the upload component. However,
you can define a custom confirmation page, or create a "results" page
based on ASP that inserts fields into a database or that does other
custom processing. So, while the component code is fixed, you can
build new custom code around the component to accomplish needed
tasks."

So surely I should be able to use a custom .asp page as a confirmation
page, which will display the file name as confirmation, and allow
them to enter further information before writing it to a database?

If I create such an .asp page and name it as the confirmation page, I
get a 'cannot run the frontpage extensions on this page' error. If I
select 'send to other' in the file upload form properties and define
the .asp page there, I'm no longer able to define the file upload
settings.

Jackie
 
J

Jackie

Hi Thomas,

no, I hadn't followed the links but I have now, and am having a go at
the first one - How to Send Form Results to a Database and an E-mail
Recipient and Use the File Upload Component Simultaneously - which
will do what I need (if I can get it working!)

Thanks for pointing it out.

Jackie
 

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

Top