PDA

View Full Version : Question about ASP.NET 2.0 – Need help uploading files from a form


pmburrow
Sun., Jan. 14, 2007, 9:07 pm
I’m designing a special online Admin form to be used by our Sound Technicians to upload sermon files to a folder on our server.

I want to accomplish two things, one is to upload the mp3 file to the folder the other is to send me some information concerning each file. I made an Admin form and have it where it will crudely email me the information that I need.


However, I played around with several scripts written in ASP and ASP.NET that upload files, I just can’t get anything to work. (Our server is set up for ASP.NET 2.0.) Below I have a couple of temporary links to example pages and another to the Admin Manager. Both pages will fail to find the file to be uploaded, even though it is able to be seen in the form.


ASP Example
http://www.discoveryumc.org/v6.0/archive/forms/asp/test.htm

(http://www.discoveryumc.org/v6.0/archive/forms/asp/test.htm)
ASP.NET Example

http://www.discoveryumc.org/v6.0/archive/forms/asp/Upload/default.aspx


Admin Manager
(Pardon the background image is still a png, so it will be slow)
http://www.discoveryumc.org/v6.0/archive/admin/PAM%20main.htm


(http://www.discoveryumc.org/v6.0/archive/admin/PAM%20main.htm)
I greatly appreciate any help that anyone can give.

Phillip


(http://www.discoveryumc.org/v6.0/archive/admin/PAM%20main.htm)

JackWolfgang
Sun., Jan. 14, 2007, 10:06 pm
Philip--

Can you post some source code?

pmburrow
Mon., Jan. 15, 2007, 5:49 pm
Jack,


Thanks for responding.
I have posted the source code on the page itself.



Phillip

JackWolfgang
Mon., Jan. 15, 2007, 11:32 pm
Thanks for responding.
I have posted the source code on the page itself.

Phillip--

Shouldn't this:

<% Set Upload = Server.CreateObject("Persits.Upload.1")

be:

<% Set Upload = Server.CreateObject("Persists.Upload.1")

pmburrow
Tue., Jan. 16, 2007, 7:29 am
Jack,


Thank you so much for being willing to help. I’m not familiar with the coding, and found this code on the internet. I believe that you were right about the typo, but it didn’t fix the problem. Now I’m getting the following error.


Server object error 'ASP 0177 : 800401f3'
Server.CreateObject Failed
/v6.0/archive/forms/asp/uploadscript.asp, line 6
800401f3

Phillip

JackWolfgang
Wed., Jan. 17, 2007, 9:50 am
This maybe a dumb question, but why not teach them to use FTP?

However, I can also see the benefits of the upload form.

pmburrow
Wed., Jan. 17, 2007, 5:23 pm
Jack,


Well, I’ve been through trying to get people to do this before. Some people will follow instructions and others won’t. I just wanted to make something that could be completed easily, besides I thought that it would be would be fun. It also can be frustrating. Do you have any ideas what the problem could be?



Phillip

pmburrow
Sat., Jan. 20, 2007, 1:14 pm
I found someone who can help me accomplice this using PHP. So I’m changing the operating system to Lynix and trying that that route.

Phillip