Uploading Files (Full Version)

All Forums >> [Web Development] >> Microsoft FrontPage Help



Message


iceregent -> Uploading Files (9/7/2005 12:55:09)

I have a website that I created in frontpage, and I have a section where I need to allow my users to upload certain file types to an upload area on my website. I have the page working to allow users to enter info about their project, and to browse their computer, select the file, and then click on the upload button. Now I don't know how to direct the browser where to upload the file to, and I also get an error message that tells me "You have submitted a form or followed a link to a page that requires a web server and the FrontPage Server Extensions to function properly.

This form or other FrontPage component will work correctly if you publish this web to a web server that has the FrontPage Server Extensions installed.


I currently DO have the server extensions installed, but don't know if my page code is set up correctly. Any help with this would be appreciated. It may be basic stuff, but for me, it's not.




womble -> RE: Uploading Files (9/7/2005 13:55:31)

Um, URL?




Taz -> RE: Uploading Files (9/7/2005 13:58:56)

quote:

ORIGINAL: womble

Um, URL?


You mean your crystal ball is on strike or not working again! :o




womble -> RE: Uploading Files (9/7/2005 14:07:44)

Gone! Golfer took it away on holiday with him. That's the last time I lend it to him! [img]http://www.ecanus.net/forumsmiles/disappear.gif[/img]




Taz -> RE: Uploading Files (9/7/2005 14:33:28)

The Cad! (dy)




iceregent -> RE: Uploading Files (9/8/2005 14:35:27)

the url is : http://www.iceregentnetworx.com/. It is a frames page, so the pages are loaded into the main frame.

IceRegent




iceregent -> RE: Uploading Files (9/12/2005 12:41:21)

no one has an answer for me here?




Larry M. -> RE: Uploading Files (9/12/2005 13:05:07)

quote:

I currently DO have the server extensions installed


iceregent,

The response line "This Web Server Does Not Disclose Identity" means the "NO" could, instead, be a definite maybe. The response itself strongly suggests an extension problem exists.

WWW Site: www.iceregentnetworx.com/
Port: 80
Server Software: This Web Server Does Not Disclose Identity
FrontPage Extensions: NO




iceregent -> RE: Uploading Files (9/12/2005 19:44:20)

well, first of all, here are the stats for the frontpage extensions:
Starting install, port: 80.

Created: 06 Mar 2005 00:07:24 -0000
Version: 4.0.2.8912
Error: The document root of the web server where you are trying to install the server extensions already contains a disk-based web.
Setting Password
Frontpage passthough auth enabled!


FrontPage extensions are currently: installed

And besides, that was not the question I posed. I dont need to hear all the 'possible problems'. I asked "Now I don't know how to direct the browser where to upload the file to.." That, is the question I would like answered.

Thank you.




womble -> RE: Uploading Files (9/13/2005 4:26:24)

Iceregent,

From your code it looks like the results are being saved to a file called projects.txt, this line in the code:
<!--webbot bot="SaveResults"
U-File="projects.txt" S-Format="HTML/BR"
That tells the browser where to upload the file to. Whether that's in the correct format though, I don't know.

On the extensions, though they seem to be installed, it could be that the extensions have become corrupted. You may need to get your host to reinstall them. How are you uploading to the server? FP Publish or ftp? Ftp-ing can sometimes cause problems with FP extensions. I have a feeling that if you're using a FP generated form, you're best using FP publish, though I'm sure Larry will correct me if I'm wrong. [;)]





iceregent -> RE: Uploading Files (9/13/2005 9:55:19)

Thank you for the response womble;

I am using an upload page that I have created in frontpage, in which the user fills out information about thier project, and then uses a browse and select function to select a file from thier local hard drive and then it is supposed to transfer the information that they filled out in the form into a text file, then also upload the selected project file to a directory on the server. The problem is, I dont know how to specify in my code, where the selected file gets uploaded to. I havent inserted that in there correctly because I do not know how to do this. I have been trying to get this resolved for several months now, and my website is sitting static because I cannot find any information to proceed beyond this point. Where do I tell the server to post this uploaded file to? And where do I tell the server to specify where the reslts.txt file is supposed to be located? I would like for the txt file and the project files to be located in the same directory, or is there a better way to do this?

Thank you;
IceRegent




AMysticWeb -> RE: Uploading Files (9/13/2005 14:14:18)

Welcome to OutFront

Ok, so I am late to arrive at the party again.

Although I didn't locate your upload form, I did run across a Registration Form, which displays The Registration Component message (not good) and goes to the infamous Run-Time component message (terrible).

The both of these point to missing or corrupt extensions.

These could be because the FrontPage server extensions aren't available or have been corrupted by using FTP to transfer this form page.

As to your upload page, this requires 2002 extensions and a Windows server.

The folder could be anything you like. Unless you plan to upload to different directories, I would just call it upload.

There is a very good tutorial @ FrontPageHowTo.com regarding this. The folder permissions will likely have to be set when your site is open live.

As to the file that gets uploaded. If it is .txt it will remain so. Likewise if it is a pdf file, it will upload as pdf. I am not aware of a program which will magically or otherwise change the file in transit.

However, with the likelihood the extensions are corrupt or not there at all will prevent the form from operating properly.

Side note here: I have seen a number of forms which wouldn't work with frames, but would work on a new non-frames page. So, with any luck it will work in a normal page.

So, I would try creating a simple one field form to see if the site is operating. Then reinstall or install the extensions and republish.

If you continue to have problems, provide a URL for the problem pages, rather than the site URL.





iceregent -> RE: Uploading Files (9/15/2005 12:10:29)

Ok, it is a frames page, so the url does not show up to me that I know of, except for the main url. The upload page is under "Projects - Create". I looked at the code of the particular form, and I did not see where I need to specify the upload folder. I am using FP2000, not FP2003, which, I understand is alot friendlier. So, what I need to know is, where in my html code, and how, do I specify where the results of the form and the file attached to the upload process, are supposed to be saved to? I have a folder in my projects directory, labeled "uploads", with permissions set for read and write for everyone, so, what do I do now?

iceregent




AMysticWeb -> RE: Uploading Files (9/16/2005 4:13:34)

Ok, if I understand, you have a folder for uploads. Is this folder in your web site or is it on your PC.

Well no matter. Just for our example, I will assume you have a folder saved to your web.

Although I have FP2000-2003, I still use 2000 primarily.

Before going further, you could of course do all the following with the site open live e.g. adjust the HTML, create the folder, set compatibility and set the permissions.

The following form HTML however was created with FrontPage 2002. In order for the File Upload option to show up, you can go into Tools >> Page Options >> Cpmpatibility and select Either Internet Explorer, Netscape Navigator or both.

Although you are using FP 2K, you may need to go into page options and switch to Both IE and NS in order for this to function properly. I imagine in the case, MS limits the upload to this compatibility for good reason ?!?

Also, since you aren't using 2002 or 2003, you don't have the option of setting this in form properties.

Now I understand why you wanted the HTML info. Duh!


<form method="POST" enctype="multipart/form-data" action="--WEBBOT-SELF--">
<!--webbot bot="FileUpload" U-File="_private/form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" B-Reverse-Chronology="FALSE" S-Destination="uploads" S-Category S-Assignedto S-ReviewStatus B-Process-MetaInfo="FALSE" S-Builtin-Fields -->
<p> Name
<input type="text" name="name" size="20"></p>
<p>Email <input type="text" name="email" size="20"></p>
<p>Upload your picture <input type="file" name="uoload_file" size="20"></p>
<p><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>
</form>



So, in this instance, I named the folder uploads as you indicated, and named the field upload_file

The code pertaining to the file upload field and process are in bold.

Keep in mind, although you can publish your form with FrontPage, the server must be Windows and the 2002 extensions are necessary in order for this to work properly.

So, publish your form , making sure the folder is published as well. Store the folder in the root web same as _private, images etc.

Now test it. It should ask for user and password.

Then you may need to open live and set the folder permissions.

Yes I get long winded.

Either way you approach this, I would recommend immediately if not sooner: Publish to file when you are done and make a backup copy.

PS if you get things working, let us know how you did it so others might benefit.




iceregent -> RE: Uploading Files (9/17/2005 15:53:05)

Ok, I got my web folks to fix me up, and now I have the extensions working correctly..apparently, uploading via ftp or something did corrupt the extensions, but now, I can rewrite using frontpage to do it..:)

Thanks;
IceRegent




Larry M. -> RE: Uploading Files (9/17/2005 17:00:13)

quote:

FrontPage extensions are currently: installed.
And besides, that was not the question I posed. I dont need to hear all the 'possible problems'


IceRegent ,

I don't mean to break this off in you, but ... ah, never mind, I lied.

Good luck [:@]




coast tickets -> RE: Uploading Files (10/6/2005 14:21:52)

Hi guys,

I am having a problem with our company website once again and I need your help. I am trying to upload pages to our website, but I am recieving a message:
"cannot find server".

I can go onto any other website beside my company website and infinology.com (our company's web host).

Do any of you know why this is happening and what might have caused this to happen? Can somebody come to my rescue and help me solve this problem?

I am the webmaster and I'm supposed to know these things, but I'm also a newbie - I do web design, yet I only know the basics of solving techincal problems.

I really need your help guys!!!

Thanks in advance,
Hazel




dpf -> RE: Uploading Files (10/6/2005 15:05:54)

quote:

apparently, uploading via ftp or something did corrupt the extensions,
too bad you didnt want to hear that answer when Larry gave it to you




iceregent -> RE: Uploading Files (10/6/2005 22:34:38)

Well, sorry that we cant all be smart and allready in 100% knowledge about web programming..but then again, thats why we come here.




rdouglass -> RE: Uploading Files (10/6/2005 22:48:05)

quote:

Well, sorry that we cant all be smart and allready in 100% knowledge about web programming..but then again, thats why we come here.


Absolutely. That's why we're all here. However most show manners and a little humility when appropriate. This forum is a freindly place and the majority of folks here really want to keep it that way.

Larry did have the appropriate answer yet for some reason you took offense to his post. We are all volunteers here ready and willing to give help where and when we can. Please try to appreciate their efforts whether they give the correct answer or not; if you do, you may find quite a few good freinds here. I know I have.




iceregent -> RE: Uploading Files (10/6/2005 22:51:25)

Excuse me? You want to play that way, be rude to me then. I am not wanting to be treated thusly by you, so, I am leaving the rudeness and this group behind, thank you very much.




rdouglass -> RE: Uploading Files (10/6/2005 22:57:31)

quote:

be rude to me


Hopefully you'll be back to read this.

I am sincerely sorry if I seemed rude but I was just trying to point out those little things called facts to you. I was trying to be tactful but you interpreted it the wrong way (or at least a different way then I intended) and for that I am truly sorry. I think the only statement I said that may have been even the slightest out-of-line is:

quote:

However most show manners and a little humility when appropriate.


Please feel free to come again - we try not to hold grudges here.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.15625