Got the extension to upload images, but cant firgure out how to get the script to work that puts the images into another folder called "images". Not too familiar with Java, so it looks a bit alien. Any tips on integrating that?
It posts the images into the folder ok, but it only writes to the database the simple filename, and not the path name of where it is newly located. So when I try and call the images up dynamically within a page, they dont load in, as they are not in the same directory as the page that calls them. I would rather avoid having all my pages and images in the same directory. How do I get this to write the full reltive path name into the DB?
Normally you specify a different path to store the uploads. You do that on the extension properties. So the path is known and there is no need to store it in the db. When you want to use your images - just prefix the filename field with the path.
I want to add ASP functionality to our web site and I would like this file upload to be the first feature we present to our group. We have an ASP supported server, I have several years experience with HTML, Javascipt, DHTML, etc. but cannot seem to get this file to work. I know this is due to my inexperience, and I was wondering if it would be possible for you to 'hold my hand' to help me load this so that I can start my ASP learning curve with this great feature.
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.
RE: I get this error when submiting the upload page
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.
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.
The extension should work without a problem on SQL 2000. Actually the whole UDzone.com runs on SQL 2000 database and heavily utilizes the Pure ASP File Upload extension (for example when uploading extensions on UDzone.com). 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.
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.
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?
You are not doing anything wrong - this is the upload extension itself. The upload extension needs to modify any standard Insert/Update Server Behaviors used on the same page, to make all do form fields working. That is why comments are appearing.
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
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 ?
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).
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.
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 firstname.lastname@example.org
Error message - but the program works! 'Form was submitted with no ENCTYPE="multipart/form-data"'
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,
RE: Error message - but the program works! 'Form was submitted with no ENCTYPE=
Well the solutions is very simple: As the error says you don't have the attribute ENCTYPE="multipart/form-data" on your form tag! eather add it manually or in you are in DW/UD - delete and add again the file upload field.
RE: RE: Error message - but the program works! 'Form was submitted with no ENCTYPE=
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
Hi I've been following the tutorial and have run into a problem, first you must know that i'm new to the whole database scenealong with programming. In other words I dont know jack! But i am trying to learn. 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?
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!
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 )
The extension works fine, but I'd like to alert the user if the file already exists on the server, and display a confirmaton message like "This file already exists. Replace it?" with an OK and Cancel button.
Can this be done?
Andy, have you tried using an URL in only the insert record server behavior? That should do the job. When you use both Upload File and Insert Record at one page you must never use the redirect of the pure asp upload extension.
Waldo, I have the same problem exactly, but ADO 2.5 *is* installed.
When I do the upload from a "public" area of my site, it works ok. But when I do it from an area that is secured with Site Server Membership, I get the error...
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.
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.)
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.
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.
i have mdac2.6 installed on pws on win98 i have downloaded and tried your tutorial by the book and still end up with the following error
error 'ASP 0177 : 800401f3'
/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..
I´ve this same proble, the file is iuploading fine but no info is recorded to the database, i´m using sql server, and i´m using the same insert record behavior in the same site, and it works fine. I´ve also checked that the redirect is at the insert record behavior and not at the asp upload behavior.
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.
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...
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?
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
I have created the virtual directory on the remote site but i guess i have to set permissions to the folder. I try doing it via UD, but i always get an error stating set permissions failed. How can i fix it. I do not host the site myself, i am using a hosting service. Please email me at email@example.com thanx.
The upload becomes the filename to the blank when it becomes the filename to Korean.
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.
Nice extension and tutorial. Although the extension works just fine inserting information into my database, I've been unable to upload actual image files into my 'images' directory folder. When submitting a new upload, the extension process seem to work the way it should, except the images are always missing. No error messages are prompted and redirect page is working properly. Any suggestions?
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...
I changed all instances in the +++'append Query string to the redirect URL' *****in "UploadFormRequest"
it doesn't work !
I know your awnser but it' me that has the problems now by Pure ASP Upload...so Help me Please
Thanks in advance
I need the image field to have a null value if no file is uploaded so I can use something like <%If Not IsNull((afteradd.Fields.Item("image").Value)) Then%> to remove the ugly broken image display. Unfortunately the field is blank but not null and this code doesn't work. Any ideas?
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...
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!
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.
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.
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.
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.
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.