Upload, Email And Delete File Off Server!

I have the setup working close to what I am after. The upload script I am using has been supplied by 'Lewis Moten'.

Basically what I am after is.

A job application contact form. that includes a input="file" element allowing the user to send a CV, to the address related to that job.

So far locally I have the file uploading, the file sent, and then the file deleted all working fine. Althoug this may well work locally I feel I will have problems when I come to trying this live. Mainly due to timings.

Surely the script would need to know when the file has been uploaded completely, also when the file has been sent completely before delete....

View Replies


ADVERTISEMENT

Delete File From Server

what r things that I have to do to let the client browser to delete a file on the server. I'm running my server on WIN2000 pro, IIS 5.0. I've stored my website and server in a virtual directory. This is the code i use to delete a file from the server folder

Code:

Function delete_file(exceldb)
'***************** Delete**********************
Set fso = CreateObject("Scripting.FileSystemObject")
Set fileObject = fso.GetFile(Server.MapPath("..upload2uploads"& exceldb))

fileObject.Delete
Set fileObject = Nothing
Set fso = Nothing
' Deletes exceldb
End Function

View Replies View Related

Delete Server File/s Using ASPupload

Ok, the following page uploads files to the server and renames them according to the item ID and database table (or update type). It also replaces existing files. There are potentially 5 files for each item ID (see FILE REFERENCE). Code:

View Replies View Related

Delete File - Server.MapPath Problem

What's wrong with this code? Thie file is there, why cant it find it?

<%
myfile = request.querystring("filename")
response write myfile
myFSO.DeleteFile(Server.MapPath(" & myfile & "))
SET myFSO = NOTHING
%>

OUTPUT:
data/000000/index.htm

Microsoft VBScript runtime error '800a0035'

File not found

/deletefile.asp, line 9

View Replies View Related

File Upload In Form, Attach To Email

I'm trying to get a file attached to an email from a form.

The form is a simple name, email, attach cv. When the user hits submit it gets sent to the company. I simply used the <input type="file"> for the user to browse.

View Replies View Related

Copy Or Upload File From Server To Ftp Server

I want to copy or upload a file from server say some lanserver to ftp server through ftp. Is it possible.

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

Upload A File To The Server?

I have just this morning built a very basic login area for myself.

Now I wish to have a script that will move a file on to the server.

I have tried looking up Google but it seems a bit quiet on tutorials with this.

Can anyone point me in the right direction?

I basically want to be able to upload a file onto the server with an ASP script.

View Replies View Related

Upload A File To My Server

I would like a somewhat user-friendly way to have the browser-side user select a file to upload and then have that file be uploaded to my web server. Speed is an issue.

View Replies View Related

File Upload With Sql Server 8 & IIS 5

I am using sql server 8 and IIS 5 on windows XP. I would like to develop a asp function to upload a file to the database. I have few queries. What is the datatype to store file in sql server database? How can I put a browse button which can get a file from client computer? What function should I use to upload file?

View Replies View Related

Upload Image, File To IIS Server

I search for free script to enable function UPLOAD Images, Files to Webserver, and save in a directory.

I have tried a free script, but it doesn't work.....

View Replies View Related

Upload File To Server From A Form

I need users to upload and delete pictures on the server from a form. I've done this in PHP before, but in ASP it looks like a different world. I need to do it simply with ASP, and cannot be installing components from the web.

Is the following in the right direction?

Code: ....

View Replies View Related

Upload File To Server And Store Name In Database

I want to be able to upload a image to a directory called 'images' on my server and also save the file name in a database. is there anything out there that does this without a COM?

View Replies View Related

File Upload Straight To Server Script

I am looking for a script that will allow me to upload a file (I will be working with images for the time being) directly from my local computer to my web server, and for it to interact with my database, by automatically response.Writing a link to that file within a database field.

I have been googling but haven't come across anything.

Any ideas of where to get a free script or two?

View Replies View Related

Upload Excel File To Server Without Using Third Party Components

How do i upload excel files to the server from the client browser without using any third party components. My server runs on NT server. And I am coding in ASP( Vbscript).

View Replies View Related

How To Read An SQL Server Into A ASP Page And Then Change, Add, Delete And Write It Back To SQL Server

I need to read a SQL Server table into a Web Page and within the Web
Page to permit my users to make changes to the records, delete or add
new records and then save the entire contents back to the SQL Server
table back.

The functionality I am looking is almost the same as In the SQL
Enterprise Manager whereby I can choose a table open the table and
then return all rows and I can maintain the same and save it back to
the SQL Server table. I want almost a similar web interface to such a
functionality.

Even if not a generic functionality as the SQL Enterprise Manager
table maintenance appreciate if somebody can share the code with a
sample how I can do it in ASP pages + T-SQL if need be.

View Replies View Related

'Email' Delete

The easiest way to describe my situation is by using the 'email' example. I retrieve my email messages and place a 'delete' checkbox by each message. I select the messages I want to delete and then click the delete button. They magically disappear.

I'm using ASP-->COM-->Stored Proc. I've envisioned creating a recordset to hand to the COM, then for each record fire the stored proc (although I'm unfamiliar with modifying a recordset before a form submit).

View Replies View Related

Upload Excel With Macros Using HTML File Upload

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?

View Replies View Related

How Can I Delete All Files On Server?

i want to delete all files from a dir off the server any suggestions?I know how to delete specific files but i dont know how to delete all files.

View Replies View Related

Delete Files Off The Server

Linux Server with Chillisoft ASP.

How would I get an ASP page to delete an image file, probably a .jpg off the server.

Basically, what I want to do, is that when the user deletes a product item from the database, it will also delete the corresponding image file from the images folder. So that the server space doesn't just fill up with redundant image files over time.

If it makes any difference the image files are uploaded using a PHP script, I've no idea how it works, but it does.

View Replies View Related

Delete Files In Server

I have a Product and that product contains some documents.The documents are uploaded to server and can be viewed in my asp application.

In admin module i have given option to edit or delete that product.In the event of edit just the records in the database get changed.But in the case of delete i have to do 2 things

1. Delete all the data related to that product.
2. Delete all the related documents for that product in the server.

So can anybody help me figure out how to delete a file using asp in ftp server.

View Replies View Related

Delete File

How can I delete a file which is saved in a folder when the user checked on the checkbox of the file to be removed and click on the Delete button?

View Replies View Related

Delete File

I'm trying to delete a file where the path and file and filename are both stored in the database.

ImageData = images/full/group.jpg

How do i go about doing this. I know how to do it for just the file name and when the path is defined on the page.

View Replies View Related

Deleting Files From Server... ObjFso Delete

I'm trying to delete files from the server and its not working. Can any one help please?
It says the file doesn't exist... where as the file exists...

I did a response.write for my delFile to make sure its there but it doesn't see the file... Code:

View Replies View Related

Error Trying To Delete File

I am trying to delete a file off a server (same server asp app is running on). I have done this before and not encountered any problems.

The code I am using is:

Set File = CreateObject("Scripting.FileSystemObject")
ImagePath =
Server.MapPath("......sectionsezineeditionsimagesarticlethu mbs")
ImagePath = ImagePath & "" &
(RS_Content.Fields.Item("CON_Issue_Number").Value) & "" &
(RS_Content.Fields.Item("CON_Image").Value)

However, I am getting an error pointing to the last line of code above:

Microsoft VBScript runtime error '800a01a8'

Object required: ''

I'm sure I am missing something simple from staring at this so long.

View Replies View Related

Program For Delete File

HI can any body give me a program for delete a online file in asp.
Actually I have created a program for mail attachment. For attaching
the file first of all I have to upload the file in a directory but
after sending attach file the file should be remove from directory.

View Replies View Related

Delete File Across Network

I need to delete files across the network using web client (IE 6.x) in Win 2003 - IIS 6.0 environment.suggest an approach I can use to acheive this.Will using FSO do the job or I have to go COM way.

View Replies View Related

Delete A File From Folder

I want to know how to delete a file from a folder in ASp Like i have the path of the file at runtime in my ASp file... but how to delete ?

View Replies View Related

FSO Delete The Very Last Character In Tgext File

I am generating a huge CSV file. It is to large to open in notepad.

Can I use the Filesystem Scripting Object to read the very last line of the
file and delete the very last character?

I am hoping the DSO will not have to read thru the whole file. it is probably way to big.

View Replies View Related

Delete Or Rename A File System

What is the easiest way to 1) delete a File System Website Solution and 2) rename a File System Website solution?

I noticed when I create the ASP.NET Web Site (via File System location option) that I get one directly with my code (.aspx etc files). but the solution is under the default Visual Studio directory. So I assume if I delete these two directories then my solution is really gone?

Renaming a solution seems to be a bit more tricky - what would be the easiest way to rename the solution and the associated directory with the acutal code (.aspx etc files)?

View Replies View Related

Delete Line From Text File

if I had a form using the input textboxes using username and password. how do I use the .asp language to remove the line from a .txt using the following format:

username<space>password

View Replies View Related

Prevent My Client To Delete File

We have offer a web space to hosting our client website. We offer them to upload asp files to their web space. How can I prevent the client from uploading asp files that will harm our web server.

For example, deleting files in our server using Scripting.FileSystemObject to delete our systemmfiles.

View Replies View Related

Delete A Line In Text File Or From An Array

I have an Access DB with newsletter preferences in it. What I am trying to do is select small groups to send a custom newsletter out to. So my localhost criteria web page goes to the Access DB and pulls the email addresses that match my current criteria. I then write that list out to a file (newsletterlist.txt). Maybe that is my problem, but I wanted to do that so if my machine crashed while processing, I would know where to recover it. I had looked at arrays and dictionaries but dictionaries aren't good from what I found for hundreds of entries and arrays I can't keep track of..argh.

Anyways, I then wanted to loop through the file (newsletter.txt) find the next email address, with it I can query back to the DB and get preferences and assemble the email and out the custom newsletter goes.

I've seen where MS says deleting a line using the FileSystemObject is not possible, though wanted to see if anyone has found a work around.

Performance isn't that much of an issue for me, as I figured I'd set the thing to running and go to dinner! So anyone have suggestions - even if it means taking the text info to an array, somehow delete one of the addresses and then put it back to a file...anything that can one by one delete the addresses so I know that it all has worked as there would be no email addresses left in the file.

View Replies View Related







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