I have modified the sample code to use my SQL database as opposed to Access. I can upload files to an image field without problems. I am saving files (word, excel, pdf) to keep track of different version. I do want them in a database, and not saved to disk.
I cannot dowload files that I have uploaded. Does anyone have working code to dowload a file from an SQL database using aspSmartUpload?
I am using smart upload object to upload files in n/w it works fine with one of my server setup but when i tried to replicate in another server this is not working
I checked with the dll registration every thing is fine....
I've got a situation where I need to be able to replace "smart quotes" and similar characters that are created (presumably) by Microsoft Word. If you don't already know, smart quotes are those "curly quotes" that curl or angle in toward the text on each side. Here is an example, though I'm not sure how it will display in a browser: “
I thought I had just used a standard replace function in the past for these things, and that seemed to work when the text was coming from a form. However, now I am receiving them from a scraped web page, which I have retrieved using ServerXMLHTTP. In this case, a standard replace is not working.
I've noticed that when I use Server.HTMLEncode on the text, both left and right smart quotes, angled apostrophes, em dashes, etc. all get encoded as  which tells me something goofy is going on. I don't know if this is a character encoding issue or what. I could just HTMLEncode the string and do a replace on  but that also encodes other things that I don't want encoded, and there appears to be no such thing as Server.HTMLDecode in classic ASP.
if there is a way to find (to strip or process) smart quotes in text submitted via a form? These don't work:
strOutput = Replace(strOutput, "“", "“") ' left smart quote char as replace value strOutput = Replace(strOutput, Chr(147), "“") ' my best guess at where the left smart quote char is in the charset. I guess the real question is if I submit the page as Unicode is there a way to process it as cp-1252?
We face problems uploading excel (with macros) documents using HTML File Upload.
The file contents are corrupted while viewing the same. However, we are able to upload excel (w/o. macros) documents successfully. Is there anything we have to take care of, while handling uploads of excel documents with macros?
I have been using pure asp upload for uploading pictures and files fo rome time now. I have a question about it thou - Is there any chance that the pure asp upload can upload a file to a directory and then copy it to a backup directory?
If anyone ever come accross this issue please let me know how u resolve it.
I use a windows application that can upload data to a http server.
I don't know exactly how the application uploads the data, but looking at the data communication I can see that the application tries to post data of type "multipart/form-data".
How can I make an asp script on my webserver that receives this data and store in on the hard drive?
on my site www.mutedesigns.co.uk/ws if you log in user: test pass: test
and add a new picture, browse for picture then click upload, it asks you to copy and paste the name you just uploaded into the form field after UPLOADS/ how do i get to insert this filename into the database?
We have a page that handles uploads, but it's hitting the 90 sec default timeout. If place this server.ScriptTimeout = 150 at the top of the page, will it set the time out for just the one asp page, or reset the value at the server level, and thus adjust it for everything.
i manage to store the picture pathname into database... c:folders lablabla....with my primary key A but how do i retrieve it back with my primary key ?? it is simple to do in php and .net
I want to offer the ablity for a user to upload an image to a specified directory on the server whilst inserting a record into a mysql database.
For example a user wants to add a new employee. They enter the revelant information into the form and they upload an image connected to that new employee about to be inserted.
Is this possible? how would you upload the image and link the image to the recordset in the database?
is there a way i can use GET method to pass the upload file value. I mean somethin like: have the file field on one page where you get to choose the file and then there is a submit button which calls the the actual upload script which has a button named Upload.
Is that posible to do? cuz all the upload scripts i've seen so far has the file field in the same file as the code that uploads.
Been using the same upload script for over 2 years. Recently, 2 images have given the error below. One was a pdf and one was a bmp. Other (and larger file size) pdf's and bmp's have uploaded with no problem. What could be different about these two images that would cause this error?
I want to include a text element to the asp upload file. When I read the documentation, it says that I have include Form collection to process the text element and include as:
strusername = upload.form("username")
I am not sure where this username should be defined and how do I process this text element along with the filename?
I'm working on a asp-application where I shall upload a xml-file from the user, and then process til file (xml) for insert into a database. I'm currently using a "INPUT-field of TYPE=file" to browse for file, and a extra submit button to perform the actual transfer and start file-processing.
Is it possible to show the user one ebutton "IMPORT" without any text-field associated with it, which browses for the file and directly startes the upload to server and triggers file-processing. The actual processing of the file must be done on the server-side (inserts to db etc.).
i'm trying to create just a simple upload - fill in a form with the article title, and description - and select a file - i need to upload that file to the webserver, and then rename that file to the <% =Sartid %>.pdf
any ideas where to get something this simple from? never done anything like this before - i'm guessing the FSO will be used?
when i load the page nothing happens, it just refreshes to a blank page. does this page need to be named something special? does it need to be on the same server it's uploading to? Code:
Building part of an intranet and having problems uploading files. I'm using ASP Upload, which I've used previously without encountering anything like this. When I got to upload my file, I am prompted w'th a dialog box which says "Connect to LaptopMKII" (LaptopMKII is the name of the PC) with spaces to add a username and password. This seems independant of the logins I have for the intranet.
When I innevitabley have to press Cancel, the error I get is:
HTTP 401.1 - Unauthorized: Logon Failed Internet Information Services
I'd post the code, but this doesn't seem to be a code issue. I've just reinstalled ASPUpload and I think that may be the cause of the problem - would this do anything to IIS that would cause this problem?
I'm looking to upload one or more files using Classic ASP.
I'm using IIS 5.1 and Windows XP, and need a free basic DLL to give me the facilities to do so. I understand that CPSHOST.DLL is a good component to use.
Firstly is it XP compatitable, if so where can I obtain it as it's not installed on my PC.
Else are their free alternatives like an alternative DLL that will allow uploading.
What is the best ASP upload script to use? I've looked into Free ASP Upload but the catch is you have to save your files via the Save method before you can get other form elements in a collection....
We have been having problem with our file upload component. It seems that at times the file upload process hangs, and the users get a timeout error. Although the users upload 1 or 2 image files at a time.
I have altered the upload size limit property in the IIS 6 metabase properties, so I don't think that is the case. Because most of the time it works okay, but at other times it hangs....