File Upload component and server extensions

J

Jackie

Hi all,

I'm trying to get the file upload component working, but have been having
problems.

I'm running Windows XP Pro, and have Server extensions running on my local
server. Forms, emails etc. all work.

I've set up a folder called Mireports, and have ticked the 'allow anonymous
upload' etc. check boxes within the folder properties (the only way I could
accomplish this was to right-click the published folder on a subsequent
Publish Web screen as they were greyed out when I tried anywhere else).

I've created a page called miupload.htm and inserted an upload form. I've
specified within form properties/file upload the destination folder
Mireports, but changed nothing else.

Within Inetpub I've given IUSR full permission on the Mireports folder, the
sub-web within which it's contained and - for good luck - the whole website!

I've gone into IIS and checked the server extensions, and had no problems
reported. I've recalculated the hyperlinks for the whole default website.

When I save the page miupload.htm and then preview in browser, I first of
all get a warning saying this page contains elements which may need to be
published to preview correctly. If I OK that, the C:\ page comes up in my
browser window and I can browse for the file I wish to upoad. When I submit,
I get a FrontPage Run-Time Component Page error.

When I publish the website to my local server, and run the
http://myservername page I get the error "Cannot run the FrontPage Server
Extensions' Smart HTML interpreter on this non-HTML page:" when I submit.

That looks as though the server extensions are not working, but if I go to a
page within the same website which uses forms (and sends an email) it works
OK.

When I publish this to my online host, which is running FrontPage 2002
server extensions and everything works OK with other forms etc, I get the
error Cannot run the FrontPage Server Extensions' Smart HTML interpreter on
this non-HTML page.

I've tried renaming the miupload.htm with an shtml extension as per an
archived recommendation, and that doesn't work either.

Does anyone have any idea what I could try next?

Thanks,
Jackie
 
T

Thomas A. Rowe

Have you checked with your host to see if you are allowed to use the FP Upload component?

I wouldn't be concerned with it working on your local computer, unless you are planning to host the
web on Internet, which is not recommend using Windows XP Pro.

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

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

Stefan B Rusynko

And see http://support.microsoft.com/default.aspx?scid=kb;en-us;299763&Product=fp2002




| Have you checked with your host to see if you are allowed to use the FP Upload component?
|
| I wouldn't be concerned with it working on your local computer, unless you are planning to host the
| web on Internet, which is not recommend using Windows XP Pro.
|
| --
| ==============================================
| Thomas A. Rowe (Microsoft MVP - FrontPage)
| WEBMASTER Resources(tm)
|
| FrontPage Resources, WebCircle, MS KB Quick Links, etc.
| ==============================================
| To assist you in getting the best answers for FrontPage support see:
| http://www.net-sites.com/sitebuilder/newsgroups.asp
|
| | > Hi all,
| >
| > I'm trying to get the file upload component working, but have been having
| > problems.
| >
| > I'm running Windows XP Pro, and have Server extensions running on my local
| > server. Forms, emails etc. all work.
| >
| > I've set up a folder called Mireports, and have ticked the 'allow anonymous
| > upload' etc. check boxes within the folder properties (the only way I could
| > accomplish this was to right-click the published folder on a subsequent
| > Publish Web screen as they were greyed out when I tried anywhere else).
| >
| > I've created a page called miupload.htm and inserted an upload form. I've
| > specified within form properties/file upload the destination folder
| > Mireports, but changed nothing else.
| >
| > Within Inetpub I've given IUSR full permission on the Mireports folder, the
| > sub-web within which it's contained and - for good luck - the whole website!
| >
| > I've gone into IIS and checked the server extensions, and had no problems
| > reported. I've recalculated the hyperlinks for the whole default website.
| >
| > When I save the page miupload.htm and then preview in browser, I first of
| > all get a warning saying this page contains elements which may need to be
| > published to preview correctly. If I OK that, the C:\ page comes up in my
| > browser window and I can browse for the file I wish to upoad. When I submit,
| > I get a FrontPage Run-Time Component Page error.
| >
| > When I publish the website to my local server, and run the
| > http://myservername page I get the error "Cannot run the FrontPage Server
| > Extensions' Smart HTML interpreter on this non-HTML page:" when I submit.
| >
| > That looks as though the server extensions are not working, but if I go to a
| > page within the same website which uses forms (and sends an email) it works
| > OK.
| >
| > When I publish this to my online host, which is running FrontPage 2002
| > server extensions and everything works OK with other forms etc, I get the
| > error Cannot run the FrontPage Server Extensions' Smart HTML interpreter on
| > this non-HTML page.
| >
| > I've tried renaming the miupload.htm with an shtml extension as per an
| > archived recommendation, and that doesn't work either.
| >
| > Does anyone have any idea what I could try next?
| >
| > Thanks,
| > Jackie
|
|
 
J

Jackie

Hi Stefan and Thomas,

thanks for the link; I've checked everything and have concluded that
old (2000) server extensions was the main problem.

I've contacted my host, and they have upgraded to 2002 Server
Extensions for me and have given write and modify permissions to
'everyone' on the folder I'm trying to upload to.

I'm nearly there now - it's thinking about uploading the file, but I'm
getting Form Validation Error - Cannot open file "XSPBrochure.PDF" for
writing. There's nothing in the upload folder.

I'm not sure if it's telling me that it can't open the source file or
the destination.

If it's the latter, I would have thought that giving 'everyone'
permission to write to and modify the folder I'm uploading to should
be sufficient?

Do permissions need to be wider than that?

Regards,
Jackie
 
S

Stefan B Rusynko

There are problems w/ files over 1 MB, and your host may have set a smaller size limit
- try uploading a small image file first



| Hi Stefan and Thomas,
|
| thanks for the link; I've checked everything and have concluded that
| old (2000) server extensions was the main problem.
|
| I've contacted my host, and they have upgraded to 2002 Server
| Extensions for me and have given write and modify permissions to
| 'everyone' on the folder I'm trying to upload to.
|
| I'm nearly there now - it's thinking about uploading the file, but I'm
| getting Form Validation Error - Cannot open file "XSPBrochure.PDF" for
| writing. There's nothing in the upload folder.
|
| I'm not sure if it's telling me that it can't open the source file or
| the destination.
|
| If it's the latter, I would have thought that giving 'everyone'
| permission to write to and modify the folder I'm uploading to should
| be sufficient?
|
| Do permissions need to be wider than that?
|
| Regards,
| Jackie
|
|
| > And see http://support.microsoft.com/default.aspx?scid=kb;en-us;299763&Product=fp2002
| >
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > To find the best Newsgroup for FrontPage support see:
| > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > _____________________________________________
| >
| >
| > | Have you checked with your host to see if you are allowed to use the FP Upload component?
| > |
| > | I wouldn't be concerned with it working on your local computer, unless you are planning to host the
| > | web on Internet, which is not recommend using Windows XP Pro.
| > |
| > | --
| > | ==============================================
| > | Thomas A. Rowe (Microsoft MVP - FrontPage)
| > | WEBMASTER Resources(tm)
| > |
| > | FrontPage Resources, WebCircle, MS KB Quick Links, etc.
| > | ==============================================
| > | To assist you in getting the best answers for FrontPage support see:
| > | http://www.net-sites.com/sitebuilder/newsgroups.asp
 
J

Jackie

Hi Stefan,

I've tried uploading a small image file on Live and get exactly the
same error - Cannot open file for writing.

Now I've upgraded to FP2002 server extensions on my local server I've
been able to get the file upload working fine here, including the PDF
that gave the original error on Live.

I'm guessing that it's going to be some kind of permissions error, so
I suppose it's just going to be elimination to find out what's
different between the local permissions and live.

You said there are problems with files over 1MB - for future
reference, is that a general upload issue or just a restriction within
FrontPage?

Regards,
Jackie
 
J

Jackie

Hi all,

just to let you know that the problems have been resolved, and I can
now upload files using the FrontPage file upload component.

My hosts got back to me this afternoon, and I quote : "There was some
strange permissions weirdness happening there, we eventually solved it
just by removing the upload abilities in FrontPage, and adding them.
It did not seem to be a Windows permissions error, it seemed to be a
FrontPage problem."

I've asked them to let me know exactly what they did in case this ever
happens again, because I'm sure they won't remember!

Thanks for all your help and input, guys.

Jackie
 
J

Jackie

Hi all,

just to let you know that the problems have been resolved, and I can
now upload files using the FrontPage file upload component.

My hosts got back to me this afternoon, and I quote : "There was some
strange permissions weirdness happening there, we eventually solved it
just by removing the upload abilities in FrontPage, and adding them.
It did not seem to be a Windows permissions error, it seemed to be a
FrontPage problem."

I've asked them to let me know exactly what they did in case this ever
happens again, because I'm sure they won't remember!

Thanks for all your help and input, guys.

Jackie
 
C

chris leeds

that's great!
I've wondered how the fp form handler works with uploads.

if you put a browse field in your form for the upload, does the form also
make note (either on the .csv, .htm, in the _private folder)? or even the
email confirmation if you've rigged one up?

Thanks,
 
J

Jackie

Hi Chris,

I haven't got much further with this, to be honest. I've put the
browse field in, and although the selected file name is available to
be displayed as a confirmation field on the confirmation page I'm not
able to get to pass the value on. I've posted this problem as a new
thread.

In answer to your question - while I've been playing around (and not
that I intended it to!) it has written the file names successfully to
an excel spreadsheet in _private, although I don't know if it also
uploaded the file at the same time!


Jackie
 
C

chris leeds

you could find out if it uploaded the file by opening the online web and
looking in the folder you specified. you could also use the file name it
wrote (what I wanted to know about) to the excel sheet in a url like:
http://example.com/folder/filenamefromexcell.jpg or whatever.

thanks for answering my ? about if fp was recording the file names.
 
J

Jackie

Hi Chris,

as advised in another thread by Thomas, I had a look at FP2002: White
Paper: How to Send Form Results to a Database and an E-mail Recipient
and Use the File Upload Component Simultaneously
(http://support.microsoft.com/default.aspx?scid=kb;EN-US;288328) and
it's worked like a dream.

Sorry I was vague in reply to your previous question - I knew FP had
been recording the file names, but as I was uploading the same few
test files over and over again I couldn't be sure that it had written
the file name to excel at the same time as it had uploaded the file
to the server. They could have been done on seperate occasions!

Anyway, I'm doing everything except send an email (which I didn't need
to do) from the white paper above, and all seems well. I hope that's
helped ;)

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