A client uploads a document (a msword .doc file) to the server, I need to search a string that document and find specific words in it (this is an Application to a School, most of them look the same, so all you can do is replace the school name in the application, but sometimes people forget to do so and get rejected for sending inappropriate application).
So I need to find in each Application possible names of other schools and alert about it.
I'm writing in ASP (I can use ASP.net as well). I DON'T HAVE ACCESS TO THE SERVER (it belongs to the hosting company, and there's no way of installing anything there).
A client uploads a document (a msword .doc file) to the server, I need to search a string that document and find specific words in it (this is an Application to a School, most of them look the same, so all you can do is replace the school name in the application, but sometimes people forget to do so and get rejected for sending inappropriate application). So I need to find in each Application possible names of other schools and alert about it.
I'm writing in ASP (I can use ASP.net as well) I DON'T HAVE ACCESS TO THE SERVER (it belongs to the hosting company, and there's no way of installing anything there)
Can somebody help me in implementing Searches on the uploaded attachments through ASP..?
To explain it a bit more, I have a web app through which the users post knowledgebase articles, these articles are in the form of .pdf or .doc... Now to visit these uploads, I am in need of a facility which scans through the contents of the uploaded attachments, the search criteria being the user given keywords...
I am having a file (default.asp) on which i am taking many details from a user before mailing it to someone. I have also provided the user with a facility of uploading files on a server.
I am uploading files from a page upload.asp which has a link on default.asp. Now my problem is that, how can i send the file name that is uploaded, in a mail along with other details that the user enters on default.asp?? In the asp in which i am sending the email, i am collecting all the details from default.asp.
I've got the following code to upload photos and save in a folder:
<% Dim objUpload Dim strFileName Dim strPath
' Instantiate Upload Class Set objUpload = New clsUpload
' Grab the file name strFileName = objUpload.Fields("File1").FileName
' Compile path to save file to strPath = Server.MapPath("Uploads") & "" & strFileName
' Save the binary data to the file system objUpload("File1").SaveAs strPath
' Release upload object from memory Set objUpload = Nothing %>
The problem is it saves with the original file name but I want manipulate it and save it with a name defined by me as if not a user that download a photo with an existing name in the folder it will re-write.
I would like to allow my customers to upload their log files so that I can analyze them. Using ASP, I've found ways to: 1) upload files using the standard form elements and save it to my server using: Code:
<input type= file>
2) from the file on my server, i can parse the text file and return results to the user However, I would prefer not saving hundreds of random text files on my server. Is there a way that I can see the contents of the uploaded text file using ASP without saving it to the server? Is there something using the filesystemobject that allows me to do this?
I am able to upload files to my server using free asp upload software. But i have another requirement now.
#1) I need to let the user upload files upto 5MB only. Not more. I need to limit the size of the file. This is how i am using the file upload.
#2) I have a txtbox and button on my main form. The name of the button is Upload and when i click on upload button i get another asp form which has Code:
I need to change the filename of a file that users on my site can upload manually. I want to make the system work so that it changes the file name into a unique id.
The field in the table is an autoincrement int field so i'm thinking about just making it take the last number in the table and adding 1 . So basically, in this script, I want to take the filename of the user uploaded content and change it to the next number in the field with whatever extension. Here's my script...
When I upload the .asp file into the server, it adds &nbps; into two of the columns of my table.
I have deleted the server's copy several times, but all the time the file gets corrupted.
I have been using HTML-Kit, Front Page and Note Pad to view my code. This error only appears in Front Page & sometimes in Note Pad, but no in HTML-Kit.
I have the following code which dumps out the location of an uploaded file and the name of the person that uploaded the file. That works correctly. Now I am trying to email the file location and name and I am at a loss. How do I pull the results into an email?
I would like to inquire how would it be possible to use asp to check the format of the excel being uploaded? Like the first row in cloumn A is named Results, column B is named Example and so on.
I've already able to use asp to to extract the data from the excel and insert them into the access ab. Now I would like to know how to be able to check the format of the excel file being uploaded, if it is the way i want then it would proceed to insert the values into the access db, if not the user will be informed that the format of the excel file was not the standard one.
I have an upload script but i would like to show the person who uploaded the file the path to the file he uploaded. Ex: http://site.com/images/uploadedfile.jpg.
I would like to inquire how would it be possible to use asp to check the format of the excel being uploaded? Like the first row in cloumn A is named Results, column B is named Example and so on...
I've already able to use asp to to extract the data from the excel and insert them into the access ab.
Now I would like to know how to be able to check the format of the excel file being uploaded, if it is the way i want then it would proceed to insert the values into the access db, if not the user will be informed that the format of the excel file was not the standard one.
I'm trying to run the server.execute command inside a executed file. It doesn't work. Can anybody tell me why? I've searched all around and haven't found a reason. Could it be because it's not supose to work, or is the syntax diferent then in the first file? It's something like this:
I am uploading a file using ASP code. After the user uploads the file, I would like to be able to open the file and check if the data is in a given format (comma separated) and also has all the data elements needed (i.e. all fields are there).
Is there a parse routine in asp that would allow me to do this. The user can upload any type of file as long as I am able to parse it and determine if the data is of the aforemention type.
I have created an asp form which I want to use to retrieve attachment from my site users. I am using Aspupload Component on sever to upload attach file on server at specific location. Although I am able to upload attach file on server. Also I created to retrieve attachment from mail its not working.
Can any one help me out to make form or code to retrieve uploaded file as attachment through mail.
Here is file where user fill his information and attach his CV....
I have a asp web page with a link point to a file which depend on the database information. Sometime is a picture file sometime a word and some time is a PDF file. For picture file, when user click the link, it will open the picture inside the IE browser. Now here is my problem:
On some of the computers, for PDF file only, it opens outside of the IE browser. Like the Acrobat program is not in the browser. With the same code, some computer works good. But I want to force it open inside the browser. why and how to fix it?
We have a need to search through an entire drive for a specific file name. The process is currently written with recursive loops through each directory and the Scripting.FileSystemObject.
Problem is, it takes forever. When I do a standard file search through Windows Explorer, it typically finds the file I'm looking for within 5 seconds. Is there another approach to file searching, or am I stuck with trying to make this recursive loop somehow more efficient?
I have to modify an ASP page that pulls data from an Excel spreadsheed and posts it on the web by adding a search/filter option to it. I'll post what I have so far: Code:
i have got the code that read the data in the Database and display inside a Excel file, but how can i use ASP code to set certain column inside that Excel file to become a freeze panel?
I have created a intranet site for a small department in the company i work for. Thanks to the help of these forums I have dabbled into a small bit of asp to automate a few manual processes.
One of the problems I would like to overcome if at all possible is as follows.. There is a network drive for which all the department have read access, the drive is full of useful documentation on processes and how too do things!
The major problem is that there are soo many documennts and different directories tat it would be a nightmare to try and search for what you want.... so this leads me to my question...
Is it possible to have some sort of google type relavence search that not only examines the filenames but also the contents of the files... (the files are mostly excel and word docs).
I have produced a quick site and now have uploaded onto the internet but it dosen't work. The problem seems to be the connection to the database.The link shows the page and the error that is displayed Page Example Here is how i have connected to the database on my machine
Code:
Set objConn = Server.CreateObject("ADODB.Connection") objConn.ConnectionString = "DSN=TPVSite" objConn.open
I am trying to gain the filename (not file path of an uploaded file) using just asp. The upload occurs correctly however I just need a snippet of code so the file name can be input into a database. For example say C:somedirectorymyfile.htm was uploaded I would need myfile.htm as the file name. Does anyone know how I could do this. I have endlessly searched the web and tried a few things but none seem to work
Anybody have idea about Image processing tools available for ASP (like Imagemagick,I dont think ImageMagick will work with ASP).
I want to adjust the images uploaded to my site(ASP) to a particular resolution and do some image resolution changes, like creating thumbnails from originally uploaded images,etc..
I maintain a website, written primarily with ASP, which allows users to fill out a form and upload documents to the web server. Once on the server other users can download the documents. Currently anybody within the Intranet can upload and download any documents. I would like to do something that would allow the user to specify who can view a document. I was thinking of using the users domain/handle as the security key.
I am trying to find out if I can take an user uploaded file. comma delimited txt file. and read this information into an access table. I have the file upload working now I want to read it into a table, all using ASP.
With the website i'm developing, the user can upload images and the filename is saved to a mysql db, the problem is displaying these images. If i use the servers local path i.e. "C:InetpubwwwrootIMGimage.jpg" then the page just displays the little box with a square, circle and triangle in it, that usually displays while an image is loading. If i use "http://localhost/IMG/image.jpg" then when i load the page i get the "connect to the server:type name & password" box popping up...
I've set the permissions so that an Internet guest has read & write permissions to the IMG folder so I don't understand why it's not just displaying the images.
I have some difficulty in stroring uploaded images name in database. Images files are uploaded successfully, but when i want to store images name into database it only contain last file name and stroe only this file name in all images fields into database....