Implementing File Attachement

I have created a cfm for my website and what my problem is that when it comes to uploding an image in the site i have to manually do it through a ftp program and than write the link in the admin section of the site in the form where i submit than it displays the new image or images.

but i would like to do it so the administrator can click on browse than attach the image and than when submited the image gets uploaded in the choosen folder and the file path is writen in the database (access). is this possable? i have an insert form that has the form to submit and i have created the insert prossersor page that contains the SQL statement that prosessos the form.

View Replies


ADVERTISEMENT

Implementing A Global Log File For A Web Site

I am trying to implement a single global text file for my web site that will log the actions that my ASP scripts peform. The site I have set up involves about five web pages with scripting in VBscript. Several of these pages also use COM automation to peform certain tasks in Excel macros which also write to the text file.

Currently, I must declare an FSO object on each page. I also have to close the object before I call the COM components (because I write to the log file from the Excel macros, too) and then open it again when control returns to my ASP scripts.

The macros I have written inside Excel are quite intensive, so they chew up some time when they execute. In the end, each user will go through the five web pages to generate an Excel spreadsheet which they can download, and, during this process, will have logged about 15 messages to the text file. Code:

View Replies View Related

Best Practice To Request Email Attachement

I'm writing an ASP page where the user can specify criteria for an online report that might take so long to generate as to justify rather sending the result as a CSV file by email.

I'm looking for ideas / best practice to manage the request for the CSV.

What I already have is ..

1. The ASP form that collects the report criteria.

2. An MTS object that receives these criteria and builds a matching recordset, and parses the results into a report (HTML format/CSV/whatever).

3. Also, the MTS object uses CDONTS (NT4 server still) to prepare an email and attach the parsed report as a file.

The problem is: when the user requests an email, I want control to immediately return to the ASP page so that the report can be prcessed and emailed in the background. Otherwise, what's happening now is that the user has to wait for the whole recordset to be processed and emailed, before the ASP page returns control to him!

What I don't want to do is: go and write a record to a database table, which some sort of polling app will pick up separately and generate the email ....

View Replies View Related

Implementing Verisign Payflow Pro

I'm testing the verisign service. Has anyone here used this service if so can you share some pointers.

I'm a bit stuck with the variables that the server returns. I want to use them but i'm getting no where.

View Replies View Related

Implementing Shadow Uploader

I found this Shadow Uploader on here, and i see that you can have an email sent, but im having troubles understanding how the email bit works
All i want is for an email to be sent to me saying 'Someone has uploaded an image' and the text from the 'name' field..
Normally i would try and do this for myself, but the site needs to be running by Tuesday and ive got no more time to much around with it.

View Replies View Related

Implementing RSA RSACryptoServiceProvider *and* JavaScript

I'm currently trying to strengthen up the security on a large ASP.NET
application. I use MD5 hashes for the user/password, and a token to 'salt'
the resultant hash. This is secure.

The next step -- and I'm *really* surprised that *everyone* doesn't do
this -- is to prevent 'Evil Eve' from listening in over the network when the
passwords and/or other sensitive information is updated. The best method
here is to use asymetrical encryption using the framework's
RSACryptoServiceProvider. Of course, this won't work on the client because
you have to use JavaScript on the client (forget Java and Activex as these
are out of the question). Therefore I want to implement RSA on the client in
JavaScript. Code:

View Replies View Related

Implementing Audit Trails

I have got around 7 pages where users can edit existing data. The thing is it is required to have an audit trail of the changes made to any table storing in user information. A google search mainly shows all 600$ softwares which can't be afforded by me. how to implement them.

View Replies View Related

ShadowUploader - Help Implementing The Code

i have no probs with the script, it works fine, but i want to be able to upload an image aswell as data (text) from the same page, i've had probs trying to do this as i get an error, cn't remember the error.

View Replies View Related

Implementing Secure Paswords/usernames

What's the best way to implement a secure passwords. The passwords already exist but i want the users to then change them.

View Replies View Related

Implementing Current Date Into Form Variable

<input type="hidden" name="date" value= (Date)>

When I use:

<% Response.Write (Date)%> if returns the date I want.

I need to enter it to this date value in my form. What is wrong with my code above? It should be obvious, but I can't figure it out....

View Replies View Related

ASP: Implementing Server Side Include Using Query Strings

I have a provider to implement domain name search and another to receive variables from my site and save them on thier site.

PROBLEM
we are using MS ASP scripts on my site.

We want to be able to implement an include file to show the results of the form process from their website.

Currenlty i tried the ASP script below but it fails, complaining of the end if statement, when i remove it, it doesnt show anything. Code:

View Replies View Related

Implementing A "Find Location By Address/zip Code"

I need to implement a find location by zip code or address and I need a little help in terms of where to begin. I have no problem with SQL queries or ASP in general, but I am just having a hard time conceptually with this.

For example, how would I know that X zip code is 10 miles from Y zip code which is store location A's zip code?

View Replies View Related

Converting An Image File To Hexa, Read Text File

i'm converting an image file to hexa..then the hexa is saved to a text file..

can any one help me how to read the content text of a text file?...

im doing it this way because i don't want to save hexa in my database, because it makes the database slower to open up.

View Replies View Related

File Properties :: Find Out The Width And Height Of An Image File

is there a way, using asp, to find out the width and height of an image file?

View Replies View Related

File System Object - Check If File Is Being Read

I have code that loops through a directory reading files..

now the problem is that files are constantly being uploaded and I only want the file system object to read those that are finished being uploaded.

How can I check the properties of the file to see if it's in middle of being written before i read the file?

View Replies View Related

How To Open A File Dialog And Get The Path Of The Selected File In ASP?

i am having a problem in how to create a Open File dialog to enable user to select a image file that will be stored into database. i just want the file path to be stored in database, not the image.

View Replies View Related

How To Find Excel File Width And File Version

It works if the file in on the server side, how to use the component (DSOleFile) with the file on the client side? Also how can I calculate the width of the file. (Page set up - Landscape or porrait). Code:

View Replies View Related

How To Do Online Streaming Audio File Or Video File?

I need to do online streaming multimedia file on my web portal, just like those online portal that selling MP3. User need to click on the preview link to stream the audio file to listen before they decide to buy the file or not. How do i link my audio file in my web server to allow it to be stream? Totally lost on this function,

View Replies View Related

File System Search On An Asp File Yields Not Results

This question has to do with MS file search but it is happening only with
..asp pages, so I though someone programming with .asp pages has experienced
the same situation.

I'm trying to find .asp pages with a certain table name (i.e.
"renewalInfo" )

When I ran the search I get no results. I know that I have that string in a
couple of pages. My file system search engine is working fine with other
file types, like Word documents, Excel spreadsheets, etc.

I tried typing the string outside the <% %> tags and when I do the search I
get the file results, so it seems like if the search engine in my file
system was not searching inside the <%%> tags. Code:

View Replies View Related

File Upload - Need To Check File Size

I'm having a problem with the fact that I want to allow image files to be uploaded to a remote web server, as the hosting package the web site is on is IIS6 and has a default file upload size limit of 200kb. As it's a shared hosting package, the default limit cannot be changed for me unfortunately.

Anyway - i need to check the size of the file being uploaded, so i can notify the user and prevent them getting the default Microsoft error message page. The problem is that I can't implement a server side size check which works, using either Request.TotalBytes or load.getFileSize (with "load" being an object of my loader class). It seems that I can't carry out any of these operations when the file size is too large.

View Replies View Related

Executing A Asp File Inside A Executed File

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:

File 1
...
<%Server.Execute("File2.asp")%>
...

File 2
...
<%Server.Execute("file3.asp")%>
...

File 3
<HTML>
<body>
Hello!
</body>
</HTML>

Is this possible?

View Replies View Related

File System Object - Not Deleting File

I am using the File System Object to create server side cookies and part of
the Function that I am writing deletes a file but I am getting a permissions
denied error on that line of code.

I am using Integrated security only on this site but how do I get the
IUSER_Machinename account to work with Integrated Security?

View Replies View Related

Vbscript Include File In Jscript File

I have an asp page written entirely in jscript with a vbscript used as an include file which one variable on the page must access.

When the page runs, I run into jscript complilation errors when it tries to access the include file (since it is written in vbscript), and I can't figure out how to get the two to work together. How do you get both scripting languages to work on the same page?

View Replies View Related

Store File Path And File Name Seperately

if i got a file path as a variable say for Example:

c:folder1folder2folder3folder4file.txt (The Path could be any long)

how do i just store the Path of the file name and the file name seperately. like :

File Path=c:folder1folder2folder3folder4
File Name=file.txt

View Replies View Related

Upload File To Server And Get File Properties

I would like to add a facility to my web page which allows users to upload basic files (word, excel, text, gif, jpg etc) to the server.

I know there's a facility to do this using HMTL forms, but I don't know how to handle the file on the server side.

What I think I need is an ASP file running some code to manipulate the filesystemobject, allowing me to receive the file and store it in the filesystem on the server. It would be nice to access some of the file properties too (name, type etc).

I've seen a few custom components online which allow you to do this, but I can't depend on installing them. I need to be able to script it myself.

View Replies View Related

Streaming File To User: 'File Could Not Be Opened'

I have a page on our intranet that is supposed to stream an Excel sheet to
the user. I'm using pretty standard code:

View Replies View Related

Converting Text File To Sound File In ASP

Does anyone know of a method of converting text files to sound files (.wav, mp3 etc) which can be accessed from ASP?

I have an ASP-based website that enables users to design choreography for equestrian dressage. The resulting design is held as a series of coded movements in a database and it can then be reproduced as text or as a series of diagrams. I would like to offer the option of an audio version.

View Replies View Related

Set File/User Permission With ASP/VBScript To A File

i would like to add a user and set file permission to a file with ASP.
(No component). is that possible ? do you have a link ? an example ?

View Replies View Related

ASP File Upload - Limit File Types?

I would like to use this code on my website to allow simple file uploads from clients. I would like to restrict the file types they can upload. Code:

View Replies View Related

File Held On Server's File System

i am currently working on a project in which part of the requirements are to store files on the Server filesystem and make these files available for download by users. Is there a simple way to provide the user with a link which starts downloading the file when it is clicked?

View Replies View Related

File Extension Validation Before Uploading The File....

I have an upload feature on my site... it works fine... but I want to validate the uploading file extension for .doc or .html before being uploaded to the server(client-side).

I have the validation to check text fields are not blank.... The first validation is for checking the text field... the second "blob" is the file upload field.... This is my code in Vbscript.. Code:

View Replies View Related

To Save A File To A Server And Retreive The File

I have an asp page, which displays graphical images.I am using Flipper graph in my application.

There is a link in the asp page "Click to view Image file",On clicking on this link,The graphical image need to be stored(Preferably in the server machine) and has to be opened in a new browser window.

To explain in detail. On clicking of that link"Click to view Image file" a function is called which does the following

1)Save the image file(.gif file) on the server machine
Graph.ImagetoGif("Location to be saved",100,200);
2) Opens the image on a new browser window.

window.open('from location from where the image is to be retreived',100,some more properties) So i need the image file to be saved in the server and retreived from the server.

View Replies View Related

Converting Text File To .iff File (VB,ASP)

Does anyone have knowledge of converting text file to .iff file. I am working on a VB ASP application. I searched for example on internet but I didn't get anything.

If you have any idea of converting text file to .iff file (VB ASP) please share with me.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved