Upload in ASP/ASPX

E

e

Hello. I have a problem. I just can't create a functional ASP/ASPX Upload
script. I used every form component in Frontpage 2000, and I can't recieve
files on the script.
 
D

David Berry

What's the code you're using (paste it into a reply) and does the folder
you're trying to upload to have write permissions?
 
E

e

I tried something very simple like this:

<input type="file" width="125" height="500" />
<%
' By me

Dim MyUpload
Set MyUpload=CreateObject("Upload")
MyUpload.Upload(file.contents, images/)

%>
 
S

Stefan B Rusynko

What makes you think that made up code will work?

For the correct way to use pure ASP (w/o a server object) see
http://www.asp101.com/articles/jacob/scriptupload.asp

But as pointed out to you
- it (and any upload script) will only work If your host allows you to set unique permissions (for file uploads) on your hosted
server

--

_____________________________________________
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.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


|I tried something very simple like this:
|
| <input type="file" width="125" height="500" />
| <%
| ' By me
|
| Dim MyUpload
| Set MyUpload=CreateObject("Upload")
| MyUpload.Upload(file.contents, images/)
|
| %>
|
| "David Berry" <[email protected]> escreveu na mensagem
| | > What's the code you're using (paste it into a reply) and does the folder
| > you're trying to upload to have write permissions?
| >
| >
| > | >> Hello. I have a problem. I just can't create a functional ASP/ASPX Upload
| >> script. I used every form component in Frontpage 2000, and I can't
| >> recieve files on the script.
| >>
| >
| >
|
|
 
D

David PurpleBerry ASP PRO

I explained(if you didn't read) that i used this one, and it didn't
work...!!!
 
S

Stefan B Rusynko

Works fine for me in many Windows (2000 / 2003) sites
- see/ use the link to the even faster version

If it did not work for you
- Then your permissions on the folder your pages are in are not set correctly
(you may need to contact your host to set them if you don't have a control panel that allows it)

To test if you have the folder permissions set correctly try the std FP html File Upload page
See http://support.microsoft.com/default.aspx?scid=kb;en-us;299763&Product=fp2002
- requires FP2002+ and FP 2002 SE and a host that allows you to set folder permissions

--

_____________________________________________
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.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


|I explained(if you didn't read) that i used this one, and it didn't
| work...!!!
| "Stefan B Rusynko" <[email protected]> escreveu na mensagem
| | > What makes you think that made up code will work?
| >
| > For the correct way to use pure ASP (w/o a server object) see
| > http://www.asp101.com/articles/jacob/scriptupload.asp
| >
| > But as pointed out to you
| > - it (and any upload script) will only work If your host allows you to set
| > unique permissions (for file uploads) on your hosted
| > server
| >
| > --
| >
| > _____________________________________________
| > 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.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
| > _____________________________________________
| >
| >
| > | > |I tried something very simple like this:
| > |
| > | <input type="file" width="125" height="500" />
| > | <%
| > | ' By me
| > |
| > | Dim MyUpload
| > | Set MyUpload=CreateObject("Upload")
| > | MyUpload.Upload(file.contents, images/)
| > |
| > | %>
| > |
| > | "David Berry" <[email protected]> escreveu na mensagem
| > | | > | > What's the code you're using (paste it into a reply) and does the
| > folder
| > | > you're trying to upload to have write permissions?
| > | >
| > | >
| > | > | > | >> Hello. I have a problem. I just can't create a functional ASP/ASPX
| > Upload
| > | >> script. I used every form component in Frontpage 2000, and I can't
| > | >> recieve files on the script.
| > | >>
| > | >
| > | >
| > |
| > |
| >
| >
|
|
 
D

David PurpleBerry ASP PRO

Thanks, it worked :)

Stefan B Rusynko said:
Works fine for me in many Windows (2000 / 2003) sites
- see/ use the link to the even faster version

If it did not work for you
- Then your permissions on the folder your pages are in are not set
correctly
(you may need to contact your host to set them if you don't have a control
panel that allows it)

To test if you have the folder permissions set correctly try the std FP
html File Upload page
See
http://support.microsoft.com/default.aspx?scid=kb;en-us;299763&Product=fp2002
- requires FP2002+ and FP 2002 SE and a host that allows you to set folder
permissions

--

_____________________________________________
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.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


|I explained(if you didn't read) that i used this one, and it didn't
| work...!!!
| "Stefan B Rusynko" <[email protected]> escreveu na mensagem
| | > What makes you think that made up code will work?
| >
| > For the correct way to use pure ASP (w/o a server object) see
| > http://www.asp101.com/articles/jacob/scriptupload.asp
| >
| > But as pointed out to you
| > - it (and any upload script) will only work If your host allows you to
set
| > unique permissions (for file uploads) on your hosted
| > server
| >
| > --
| >
| > _____________________________________________
| > 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.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
| > _____________________________________________
| >
| >
| > | > |I tried something very simple like this:
| > |
| > | <input type="file" width="125" height="500" />
| > | <%
| > | ' By me
| > |
| > | Dim MyUpload
| > | Set MyUpload=CreateObject("Upload")
| > | MyUpload.Upload(file.contents, images/)
| > |
| > | %>
| > |
| > | "David Berry" <[email protected]> escreveu na mensagem
| > | | > | > What's the code you're using (paste it into a reply) and does the
| > folder
| > | > you're trying to upload to have write permissions?
| > | >
| > | >
| > | > | > | >> Hello. I have a problem. I just can't create a functional
ASP/ASPX
| > Upload
| > | >> script. I used every form component in Frontpage 2000, and I
can't
| > | >> recieve files on the script.
| > | >>
| > | >
| > | >
| > |
| > |
| >
| >
|
|
 

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