Replies Back to Article
Pure ASP Upload Tutorial by Leon Radley
I followed your tutorial to the tee. The problem lies in when I try to view it I either get a page can not be found error or it takes me to another page in my website. Any ideas?
Thanks,
Chris
Chris
When I apply the PureASPuplaod in my form and click submit, show one blank screen! You extension is not compatible with SQL Server.... Check this!
Server object error 'ASP 0177 : 800401f3'
Server.CreateObject Failed
/lcc/pages/TMPb0wye8pi3x.asp, line 148
800401f3
Any ideas greatly appreciated.
p.s this was using the supplied 'ready script' pages
I am getting the same error message.
I noticed that a previous post mentioned that you could receive this error if you were running an older version of ADO. I am running 2.6, so I can eliminate that as the problem.
I have found that when the pages are uploaded to the server that it all functions just fine.
The only problem now is the same as other users are finding, the full path to the image is not stored in the database. It has been suggested that the path should be prefixed with the required path...any clues how to do this as I have tried a few ways without any luck.
Would it not be possible to prefix with the full path as specifed when the folder is selected to store the images in?
As ever any help much appreciated as this is a great tool, just stumbling at the last hurdle.
Regards
Phil
Look also under the comments on Pure ASP Upload.
You are missing ADO 2.5 - go and get the latest MDAC (it includes ADO 2.5) from www.microsoft.com/data
I am trying to get your extension working with SQL server 2000.
I have it working using my own modified versions of the access database and sample pages which came with the download. Strangely I had problems with this too - if I directly changed the form on upload.asp using server behaviours in ultradev (I tried with both versions 3 and 4) then it wouldn't work, but changing the source code worked.
I am having the same problem changing over to using the SQL server database. When I change the connection string and reassociate the form fields with the database fields using server behaviours, it quits working. The asp page loads up ok and the image file gets uploaded to the server fine but no record is inserted into the database. I am not experienced enough to change the source code to work with SQL server.
Please help if you can!!!
Rachel
Leon,
After following the steps in your tutorial it worked great, thanks for that!! I do have one question though:
Is it possible to rename the uploaded file to avoid overwriting an existing file? For example, if I am uploading a file named image1.jpg, can I upload it under a different file name such as 03427.jpg. Maybe the name can be generated from the database?
Any help would be much appreciated. Thanks for a great tutorial.
Nico
If you have problems with the upload extensions and a Insert/Update Record SB, just remove both from yout page, save and add them again. This mind solve your problems.
I have a problem also with the upload extension. The extension is great and really cuts out a lot of work. I do though, however, wish to change the name of each image so that each image will be named uniquely. How can this be done. Any input would be helpful.
Thanks,
Clay Dempsey
sorry.. but I receive this error when I try to upload images:
Server object error 'ASP 0177 : 800401f3'
Server.CreateObject Failed
/ctman/upload.asp, line 149
Invalid class string
after submitting the form...
what is it? can u help me?
tx alot
Look also under the comments on Pure ASP Upload.
You are missing ADO 2.5 - go and get the latest MDAC (it includes ADO 2.5) from www.microsoft.com/data
TX a lot... I already did!! :-)
now it is working...
FANTaSTIC!!!
I tried your mxp but got this error message from browser. I uploaded to virtual root directory. Could you suggest how to fix this? Thank you. An error has occured saving uploaded file!
Filename: /test.gif
Maybe the destination directory does not exist, or you don't have write permission.
Please correct and try again
It's a little hard to say just like this, if you write the line that isn't working then maybe I could think of a soution.
try giving the folder your trying to upload to the right permissions
download the latest ado drivers from www.microsoft.com/data/
try doing a new uploadpage with just the upload extension on and see if that works.
Cheers Leon
I tested uploading to www.domaindlx.com and it works. But It doesn't work on www.brinkster.com Pls suggest me why and about ado drivers. I follow your links but it seems to be a lot of download. Pls let me know which one I must download to get it work.
Thanks a lot.
Ten
http://www.microsoft.com/data/download_260rtm.htm
download your laguage and install ;P
Hi,
I've done the form with a few fields, all working fine, but I'd like to be able to allow the user to insert a news item (that's what the form's for) without an image if needs be. I've tried taking out the 'check if the file field is null' bit from the checkFileUpload function, but I get: 'news.FilePath' cannot be a zero-length string
Any pointer would be most welcome - thanks for the tutorial, by the way.
hi i have been struggling with this for some time now, so i downloaded your ready script which works fine. when comparing the code for your page and the one i created i noticed that any function commented '(Modified for File Upload)' was different in my script. i think i have followed your intructions to the letter (several times)!! any idea what i could be doing wrong?
thanks
joe baldwin
This tutorial is in ASP 2.0 / VBscript check that your using that first...
you didn't mension what errors you are getting when you try to upload
download the right drivers from this url www.microsoft.com/data
then you look for look in previous post if you don't understand where to get the drivers from
send me an email with the code attached and I'll have a look at it.
Cheers
Just put the file field from the form within a ASP condition:
<% if hasDownload then %>
<tr>
<td align="right"><b>Filename</b></td>
<td><input type="file" name="filename" size="40"></td>
</tr>
<% end if %>
Maybe you can also use the Conditional Region extension.
I am receiving this error message:
ADODB.Recordset error '800a0bb9'
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
/Upload/TMPrdvo9k2gl.asp, line 277
Here is line 277:
RsUpload.ActiveConnection = MM_uploadconn_STRING;
I have checked and rechecked all of the settings. What do you think is going on? I am running Win98SE, Access 97, ADO 2.5, & UltraDev 4.0. Thanks!
Hi,
I would like to use PureASPupload to upload files on an intranet. The location of the files is not in the root direcory of my intranet. I is on another location in the network. When I use "browse" to go to that location and I run the script, I get an error saying that the loation does not exists (or that I don't have write permission". If I use a destination in a folder in the root directory of the intranetlocation, everything works fine. Any suggestions on how to make the script write the right location ?
Thank you.
Jorg Leenaards
Hi - I've cross posted this to the extensions (ASPUpload) - as I'm not sure where to really ask - I've tried the macromedia forum too but have not yet had a response from the forums - this tutorial works brilliantly - until I try and create my own form, and database - The files selected are still uploaded, but no data is written to the database - I have re-created your tutorial using UD1 and MS Access 97, and MDAC 2.5 - is anyone aware of any known reason that affects writing to the database (is the Upload code only fully operational on Access 2000 for instance).
Thanks in advance, and kindest regards, Mark Tait
If you are uploading to any dir - first you should make sure the the anynimous user account (IUSER_computername) has a write/change permission to it.
I'm not sure if the upload will work on a network share. You can try making it a virtual directory first.
ASP uplod works fine on my system. When is posted on my web - IP, than I get following error message:
Server object error 'ASP 0177 : 800401f3'
Server.CreateObject Failed
/upload.asp, line 148
Invalid class string
This is line 148: Set GP_strm1 = Server.CreateObject("ADODB.Stream")
....and this is waht support from my IP said:|
"..Your error message indicates that you have an invalid class string"
Please, I would like to know if there is any cahange I need to make to this line or error is caused by my ISP - no ADO 2.5 version, or it is something different. Thank you, Mike.
Get ADO 2.5 with the latest MDAC from www.microsoft.com/data
I've just used the PureASPUpload on one of my pages, and I'm encountering the same problem. The form won't insert to the database at all. The file is uploaded, but the database fields are still blank. I'm using Access 2000 on Windows 2000 with IIS 5.0.
If you could also tell me how you got this great form/HTML editor to enter the Replies, I'd love to get it too. I'm looking for a very simple version of it, one that would just substitute <br> when the user presses the "Enter" key and a couple of other things, maybe bullets and numbered lists and the align keys.
Thanks! Contact me at raoulpop@hotmail.com
Hi - I'me following the instructions to the letter (including the field names for the form etc) - (I've also tried copying and pasting character for character from the working example files for the form) - but I keep getting the message'Form was submitted with no ENCTYPE="multipart/form-data"
Please correct the form attributes and try again.'
The data is appended to the database, and the file is moved into the correct directory - but just can't get passed this error message - has anyone any ideas what may be wrong (my system corrupt?) - I'm using UD1, Access 97 and PWS.
Thanks in advance,
Mark Tait
Hi George - thanks for the quick response - I do have that in my Form tag - I cut and pasted the form from your downloadble examples (after re-doing it manually several times) - all of the fields work - the database is updated and the file is copied, as it's intended to be - hence the reason I was doubting my system set-up (certainly not your excellent program)...I cannot understand why the message comes back - suggests that my system is somehow re-sending the request...
Just managed a work around - for my re-direct file, I was 'mistakingly?' re-directing the page back to itself - if I re-direct it to another page (from the InsertRecord area), I no longer get the message - but the URL shows the re-directed page and '?GP_Upload=True' at the end.
I can live with that, Thanks again, and kindest regards, Mark
In the tutorial when i get to step 6 where i choose the PureASPupload button i get a popupmessage saying
"Before using this Server Behavior, please create a form that has a file field on it"
What am i not doing?
Thanks
Hi there! I've applied this extension to my page, and the files upload fine, but the database remains unchanged. I do not get any errors. Do I need to add the "insert record" and "pure asp upload" behaviors in a certain order? I'm not sure why it's not working. HELP!
Ty
However if you use Insert/Update Record SB - you should specify there the redirect page and NOT on the Pure Upload Extension.
I have got this baby working great , thank you UDZONE, but when i test it on PWS the only way i get it to work is to have a link after the insert record and after the pure ASP. ( not in only one of them )
just thought you should know....
Server object error 'ASP 0177 : 800401f3'
Server.CreateObject Failed
It seems that the code
'Create a Stream instance
Dim GP_strm1, GP_strm2
Set GP_strm1 = Server.CreateObject("ADODB.Stream")
Set GP_strm2 = Server.CreateObject("ADODB.Stream")
cannot be executed.
What should I do to solve this problem?
Thanks in advance
Hi ,
It would like to know as I can show the Upload progressive to ber after the form being filled?
As the model of Update Detaul page in Udzone.
Yours truly,
Hi ,
Not to want to abuse its aid.
It would like to know, as that Update Detaul page in Udzone, upload of the archive if becomes optional,
or either is possivel to order the article, without mind would necessaria to fill the field of the archive for upload.
Therefore in the extension Pure ASP this is denied.
I only can order registering in cadastre the data in the data base being obliged to fill the field archive.
Please, I wait its information.
It is of importancia extreme for a design that I am developing.
It is amazing that I am the only one getting this error message
3704 Operation is not allowed when the object is closed.
The form works fine and files are uploaded to the folder but when the page is loaded this error message appears. I do a refresh and it disappears but how do I keep it from appearing?
Thanks,
Jordan
Provider error '80004005'
Unspecified error
/upload.asp, line 259
Hi,
I followed your tutorial and even tried PureAspUpload with your zipped files. The problem I am having is that the image I select is uploading into the specified directory, however, all the information (including the image name) is not being inserting into the data base (as per your example database, where all the fields are complete.)
Thanx
Look forward to your reply
MLIFTY
The file uploads OK, I then get a page not found error...
upload.asp?GP_upload=true
Any ideas ? Thanks - Pete.
just tryed this extension, worked first time, thanks u saved me a lot of work. but i have two questions
1st how do you save a gif into an access database
2nd is it possible to delete the files uploaded in some way (not the ones saved in database)
thanx for the extension
and thanx for any help
Hi i got the same error i installed MdAC 2.6 but still its not working
please let me thanks abdul@sonicboom.com
Worked first time, after downloading MDAC2.5 from Microsoft site.
Exactly what I needed for several projects.
By the by, where can I get script / extension for colour picker & font selector box like the one you enter this message in?
Reply to mike_win@blueyonder.co.uk
Thanks, this is great!
I've used this extention for a few projects, and it works great.
But....there is one problem. When I update a record with an image, I always have to find the image again! Is there some way past this.
Thanks again
Sindri
Great extension and works everytime.
But - How do you make the file upload so that it is NOT required - ie: to the end user doesn't have to upload an image everytime?
Hi! This extension and tutorial have brung a new sense to my life. ;-D
Anyway, i need some help. How is it possible to pass the form values to the redirect page? I´d thank an answer covering both scenarios: a) When the user defines a redirect page in the extension window and b) when the redirect page is the default one defined in the INSERT page.
Thanks in advance
We have a tutorial on this http://www.udzone.com/go?385
This is just for the standard Insert Server Behavior.
To make it work with Pure Upload you need to change all instances of Request.Form to UploadFormRequest
Some other changes may maybe required but we don't really support this - so use that on your own risk.
That error means that you have not enabled the web permissions for the folder your images are going to. Have your ISP enable web sharing, regular sharing, and read/write permissions for the folder where the images are to be stored. I say do all of this because I find things fail when only the web permissions are on.
Quinn Pearson
Can someone tell me EXACTLY what to set my permissions at for file uploading. My picture folder is set to full control, and file sharing. I want to tone it down a bit.
Server object
error 'ASP 0177 : 800401f3'Server.CreateObject Failed
/TMPbtvpqovp2.asp, line 149
800401f3 i have restarted my computer twice to make sure all the components gets installed they were, ive checked if pws is running it is, ive checked if all the required parameters has been imputed they have but the msg still persist..
what do you think could cause this......
It seems to me I am not the only one having this error.
I as well have the same exact problem and would like to get to the bottom if this.
my email address is tony@designbytony.com
I find PureAspUpload a great extension, but i got a problem. I set to Custom the file extension to download: DOC, HTM, HTML, RTF
if I try to upload a zip file i should have an error, isn't it? But i the zip file is uploaded to the server, so i think Custom "filter" doesn't work. Anyone can help me? Thanks.
Hi, I'm just new at using the PureASP upload. I've created the table, DB connection and Insert command. Now I just want to use the PureASP upload behaviour but it keeps giving me the following error:
! Please create a FOrm with File Upload field before using this Server Behaviour!
I've already created a form with a field containing this name. Can you please tell me what's going on??????
Hi, I'm just new at using the PureASP upload. I've created the table, DB connection and Insert command. Now I just want to use the PureASP upload behaviour but it keeps giving me the following error:
! Please create a FOrm with File Upload field before using this Server Behaviour!
I've already created a form with a field containing this name. Can you please tell me what's going on??????
l I have just used the upload tutorial just as descriped he doesn`t give any errors but he doesn`t put the info in the database he only uploads the file
Please help me,
Greets,
Hi dear,
You have to do it, otherwise it wouldn't work. If you dont know how, then download the zip file. Open the upload.asp, click the field where browse is written. Copy and paste it onto your asp file. Thats it no mere errors.
Hi when ever I print out these tutorials i have to save your page and then reformat it, other wise I miss a lot of the information due to the right column over lapping the center column. this is a right pan and I believe if you had a downloadable version even with advertisements at the bottom of the page i would nt care but at the moment it is a sruggle.
regards
Does anyone know how to use Server.Transfer with this extension?
I can get it to work just fine and I get get the Server.Transfer to work on a simple insert record page but can't get it to work with this extension on my insert page.
Thanks for your help.
I am having the same problem... I created a new file and follow those steps and now I am getting this error:
Form was submitted with no ENCTYPE="multipart/form-data"
Please correct the form attributes and try again.
I checked my form and it have the enctype set to "multipart/form-data"
Can somebody help me?
OK I found the problem, I dont know why but if you use Access 2000 it upload the picture but not the others fields to the Database.
So I converted my database to access 97 and it works fine.
I am working on a PIII 1.0 Ghz 512 Ram IIS 5.0 and using an access 2002/ XP
You probably haven't set the permissions for the file up... to do so (in win2k, don't know how it looks in another os) right klick the database file and choose properties then go to the security tab... then add the user IUSR_"computername"... then in the permissions press the allow write checkbox.. this makes the "internet" user get write permissions on the database thus making it possible to insert data...
Cheers and hope it works out now.
I'm struggling with this for some reason. I want to show the newly inserted or updated record on the redirect page. I was at one point able to get that to work before adding the pure aspupload. After adding it the record no longer inserts and I'm not redirected.
I have been trying to troubleshoot the problem. I started over with a very basic form with no file field, no aspupload and no dynamic content on the redirect page, just a "good boy it works" and it does. As soon as I add a file field it bombs. No insert and no redirect. I even tried adding the file field before adding the insert behavior and I get the same bad results. What am I doing wrong?
Is there some straightforward aproach to getting the type of tool I am trying to create?
Jeff!
I have exactly the same prob with Pure ASP upload 1 - I would like to pass data from the form to the redirect page but havne't had any luck so far...I tried Server.Transfer and inserting sessions but it just throws up the "Cannot use generic request after calling BinaryRead" error message - if anyone could tell us how to get around this, that would make my day! Other than that PureASP Upload is an excellent extension and I'll gladly shell out the 50 bucks for version 2.0
Alex
http://www.rdi1.com/personal/dwud-aspupload.gif
I followed the exact instructions of the tutorial to the point where you create the connection, when I go to test it, this the result I recieve.
Thanks in advance,
Matt S.
Getting this message:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
/personal/upload.asp, line 124
What do I have to do to get it to work? Thanks.
Matt S.
My server environment ....
- IIS 5
- Dreamweaver Ultradev 4.0.
A problem ....
I created my insert page with the Pure ASP Upload extension according to the tutorial, but when I test the page on the remote server it gives the following result:
Server object error 'ASP 0177 : 800401f3'
Server.CreateObject Failed
/cyberib/82/hfi_deconinc/uploadpic.asp, line 149
Invalid class string
could you maybe help me solve this problem?
greetz Tom
Greetings,...I had a similar problem happen to me when I first started using the upload extension. I ended up downloading the 'mdac 2.5 rtm' for windows 98 from microsoft data. And the installation of the downloaded software seem to do the trick.
Hope this helps.
Dennis.
All the permission are open, what can be the problem!?
-------------------------------------------
An error has occured saving uploaded file!
Filename: /uploader/images/vactiklogo.gif
Maybe the destination directory does not exist, or you don't have write permission.
Please correct and try again
-------------------------------------------
hope anyone can help me...
Am I as blind as it seems? I can't find the download for this extension anywhere on this page. Please help????
Thanks in Advance
Alan
I have exactly the same problem. Just purchased the 2.09, and it won't upload at all. HELP!
japhthor
Is there a problem with the "overwrite" ? It seems to work okay for a new file...
J
I have added upload extension to and existing update form, when I get a popup window that error"iform is undefined". I cannot find the reference iform anywhere. Maybe I’m brain dead,”being that it 3:00 am, but where is this error coming from and how do I fix it...
I have tryed with the files supplied and it worked fine.
I copied the file to a new one and removed all the behaviours (Insert and Upload), to use the new version.
Added Insert behabiour, then ASP Upload, well, nothing works, not even the upload.
I'm thinking about asking for a refund.
Dionísio
I can't get the ASPupload to work at the moment... I just have a very simple form to upload a file (I'm not trying anything fancy like updating a record at the same time or anything like that).
Once I select the file and submit the form, I see a file= parameter and a Submit= parameter added to the URL... but nothing happens. No file is uploaded, no redirection occurs.
Any idea what I might be doing wrong, or why it isn't working for me?
Regards,
Alex
I can see the Pure ASP FIle upload, so where should i be able to download this file man...i reply need someone who can answer me about this....man..thankx a lot....
and i hope for some prompt reply from anyone who know...
Hi, This is the message I receive when uploading. I tried all settings in the Pure ASP Upload extention but without any result. What can I do abou it?
===============
An error has occured saving uploaded file!
Filename: D:\Inetpub\user4044\htdocs\upload\move8.jpg
Error # 424 Object required
in Microsoft VBScript runtime error(0)
=================
Carl,
I'm having the same problem with Pure ASP File Upload 2.16. If you find the cause I would appreciate it if you would share it with me.
Jim
Hi Jim,
Probably your file upload map has no writing rights. You should contact your ISP to make the changes. In my case it works now, but I have a new problem. The file uploads to the server now and also writes the uploaded filename to my database, but it doesn't include the path! The only solution for this problem I have up till now is create and ASP document in my upload map to access the uploaded file (in my case pictures). I don't want that. If you know how to change the path please let me know. I clicked on the upload map in the upload extention, so that's not the problem. Hope I got you one step further.
Good luck, you'll need it :)
Carl
Dear Tracy,
i have the same problem that you had in the 2001, that you wrote this message:
ADODB.Recordset error '800a0bb9'
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
/Upload/TMPrdvo9k2gl.asp, line 277
Here is line 277:
RsUpload.ActiveConnection = MM_uploadconn_STRING;
I have checked and rechecked all of the settings. What do you think is going on? I am running Win98SE, Access 97, ADO 2.5, & UltraDev 4.0. Thanks!
My problem and my conditions of work (software) are the same. Can You Help me??? Please????
My code that gives the errore is this:
<%@LANGUAGE="JAVASCRIPT"%>
<!--#include file="Connections/connServ.asp" -->
<%
var Pratiche__varCli = "%";
if(String(Request("txtCli")) != "undefined") {
Pratiche__varCli = String(Request("txtCli"));
}
%>
<%
var Pratiche__varSede = "%";
if(String(Request("txtSede")) != "undefined") {
Pratiche__varSede = String(Request("txtSede"));
}
%>
<%
var Pratiche__varProf = "%";
if(String(Request("txtProf")) != "undefined") {
Pratiche__varProf = String(Request("txtProf"));
}
%>
<%
var Pratiche = Server.CreateObject("ADODB.Recordset");
Pratiche.ActiveConnection = MM_connServ_STRING;
Pratiche.Source = "SELECT CodCli, Sede, Prof, IDPratica FROM avanzamento WHERE CodCli LIKE '"+ Pratiche__varCli.replace(/'/g, "''") + "' AND Sede LIKE '"+ Pratiche__varSede.replace(/'/g, "''") + "' AND Prof LIKE '"+ Pratiche__varProf.replace(/'/g, "''") + "' ";
Pratiche.CursorType = 0;
Pratiche.CursorLocation = 2;
Pratiche.LockType = 3;
Pratiche.Open();
var Pratiche_numRows = 0;
%>
he bold line is the line of the error.Thank you
!!!!!!
An error has occured saving uploaded file!
Filename: D:\****\*******\solo_ads\camera.jpg
Error # 424 Object required
in Microsoft VBScript runtime error(0)
Can anybody share some light in this matter noone seems to know, I have tryed it in 3 diff websites and always get to this point. Death in the mud.
seems to work on my local computer but when up loaded it fails to work.
on one website it was working fine and all of the suden stop working and have not been able to get it to work again.
Hi,
I do exactly as explained in the tutorial but I'm not able to make the extension work correctly. The file is uploaded in the directory I choose, but nothing is written in the database. It also shows an error page with an error related to something "LBound".
What is the problem ?! The script I downloaded from the website works fine, and even if I make some changes in it, upgrading the pureASPupload version and so on, it still keeps working. If I make it from the ground up it doesn't work.
I need help. It was quite expensive for me, but if it worked it would have worth the money. Otherwise it's only a waste of money.
Bye.
Antonio
I have encountered an interesting variation of the same problem.
I can upload successfully from my PC, but a user of the site in a different location is encountering the exact same message.
So it seems to work inconsistently. Could this be to do with browser security settings? Network permissions? Anyone have any ideas?
This tutorial is 2 years old and does not apply to the current version of MX2004.
It refers to object panels - long since abandoned, and only gives the absolute bare minimum of instruction, omitting any explanation of many of the available options in the behaviour.
You may just get it working, but don't expect it ever to function at the first attempt.
The downloaded script may well function on an old version of Ultradev, but never 'as is' on MX2004.
I suggest that for such an expensive item, there should be a proper set of instructions included with the package.
If this is the best that is available, I wish that I had spent my money on something else.
Whilst my comments about the tutorial still stand, further investigation of the help files within the package do give a full and complete set of instructions for you to work to, including detailed tutorials. Better still, they are printer friendly, though they still refer to Ultradev, and could do with updating.
I must therefore apologise and retract my statement regarding wishing I had not bought the package. Follow the tutorials and the thing actually works well.
I ran in to same issue while uploading to a server in my LAN. To resolve this issue I mapped a network drive to uploading folder in my web server.
after this it started working
This program works great with small image size. but when i am trying to more 400k files it fails to upload. just time me out. doesn't matter what the timeout value i set. it will keep hanging thentime me out.
I am working on windows200 and 2003 server.
any help will be greatly appreciated
thx
George is ther any way I can get an extension that doesnot check image size. I am trying very hard to resolve this issue. got microsoft also with this issue. apperantly they are having the same issue. let me know if there is nay insight to this issue.
thx in advance
ANWAR
I have the same problem. Have you find a solution?
Stef.