Asp File Upload Homework System!

I was hoping someone could help a bit of a novice!

I've used freeAspupload.net's script to create a page where my pupils can upload their homework. It works fine.

What I wanted to do though was have them select their name from a class list and then pass that information to a database that records who has uploaded their homework that week. Is there a way I ( a mere primary school teacher) could achieve this

View Replies


ADVERTISEMENT

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

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

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 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

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 System

This piece of code brings down my entire webserver (XP pro) :

Code:

dim fs
set fs = CreateObject("Scripting.FileSystemObject")
fs.DeleteFile ("c:/inetpub/wwwroot/images/dsc00001.jpg")

Whats wrong with it ? The file and path is correct.

View Replies View Related

File System Object

I am trying to create a text file by using the following code. But it's not working. It just loading the page that's all.

<%
DIM fso, NewsFile
Set fso = CreateObject("Scripting.FileSystemObject")
Set NewsFile = fso.CreateTextFile("c: est1.txt", True)
NewsFile.WriteLine("Hello World!")

NewsFile.Close
%>

View Replies View Related

File Transfer System

I'm looking for an ASP (dotnet is alirght too) File Transfer system for use by internal employees and customers. I need to be able to control access to the system on a user and group basis and allow people to upload and download files.

View Replies View Related

File System Objects

I am using the below code to try and make sure a file exists before it is uploaded. When the below code runs and it does the fso.FileExists check, if strValue equals C:TestTestFile.txt, is the code looking on the web server or is it looking on the users machine to see if the file exists?

set fso = createobject("Scripting.FileSystemObject")

for each strValue in Request.Form("lstAttachments")
If fso.FileExists (strValue) then
Found = true
Else
Found = false
End if
next

The reason I ask is I assumed the code could look on the user’s machine. Is this possible? If not, I assume the logic a programmer needs to follow is first upload all files that need to be uploaded and then do the exists check. Is this correct?

View Replies View Related

2 Frames And File System

The OS is Windows 2000. I have a asp with 2 frames. On the left I have a
menu and one of the options open the file system on the right frame,
using file://. My problem is that when a user double click a folder
instead of showing the content of the folder only in the frame the
content is showed in all the window, so I lost the menu on the left.
This problem happen in win 2000, in winxp i have no problem.

View Replies View Related

FILE SYSTEM OBJECT

Is there any command in FSO syntax to delete a record (delete a line) in a textfile database? Example:

WriteRecord.DeleteLine(Record)

View Replies View Related

File System Object

I have used File System object to write contents in a text file. But when i request the page, it just processing without completing the job.. The writing to text file is not happening.

View Replies View Related

File System Object

I have about 200 documents to which I need to write a header and a footer. Appending (the footer) is easy, but I cannot figure out how to write to the very beginning of the file.

View Replies View Related

File System Object

when we use File system object in asp to read disk content of a server, in which sort order file system object reads and put all files in a list. well I put images in a folder and FSO reads and display on web page, I want to sort these images, for example by name or by date of creation.

How can I do that,If I have to do something with fso or, I can sepratly sort the listitem where fso stores the list.

View Replies View Related

Using File System Object

I have a web site that uses NT authentication. It accesses a file on another server using FSO. The user has full control of that file yet when trying to access it via the website they get a Access Denied error. Shouldn't IIS use the current security context (which has rights to file) to access the file?

View Replies View Related

File System Interaction

How can I read and create documents on the server

For Instance

I want to show the asp code of certain files on the client
I want to upload image files to the server
I want to create directories on the server and copy files to this directory

I probably need to create some object. But I don't know which one. Any help or references to some documentation.

View Replies View Related

File System Object

Given a folder with a hundred images can someone please show me how to loop through the files and rename them like this

auto1.jpg
auto2.jpg
auto3.jpg
etc
etc

View Replies View Related

File System Object

Can some tell me how can I search for a particular block of text within the file and delete it? Section of the file I want to change looks like the one below and I want all
the lines starting with dteHolidays[ deleted?

/* INSERT HOLIDAYS HERE!
*/

dteHolidays[0] = new Date("01/01/2004"); // CHRISTMAS DAY
dteHolidays[1] = new Date("04/09/2004"); // Good Friday
dteHolidays[2] = new Date("04/12/2004"); // Easter Monday

View Replies View Related

File System Object

I am building an upload script that overwrites any file with the same name, however the file could be a jpg, gif, bmp etc. Using 'fso.FileExists ' i can find if a file of the same name exists and remove it. The file will be saved as strMemberId.strFileExt. There is a possibility that file xyz.jpg may be re-uploaded as xyz.gif thus while the new image will be written to the folder the previous file will not be removed.

I am trying to find the best way of finding the file name of a file without the extension so I can delete any files that may exist with the same name but a have different extension. Is there a way of calling a wildcard in asp?


eg ' fso.FileExists(Server.MapPath("../tempfolder/" & strMemberId &".*" ))
' - tried this & several other combinations but it does not work.

The only other way I can see of doing it is to pass the file name into a string, strip the extension off it and then build an array to loop through the possible extensions but I am sure there is a better way.

View Replies View Related

File System Object

I have script which is to check if a folder is existed. Even though the folder (virtual directory) is existed but the script objFSO.FolderExists() always return false.
The script as following:

Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
If objFSO.FolderExists("../images/thumb") Then
Set objFolder = objFSO.GetFolder(Server.MapPath(strPath))
response.Write("Folder exists")
else
objFSO.CreateFolder(("../images/thumb")
response.Write("not existed")
end if

View Replies View Related

Using The File System Object On IIS

whenever i am using the File System Object on IIS my ASP page tends to "hang", but doesn't report any errors.

View Replies View Related

File System Object

if it's possible to tell if a file is already open. If I have a file on the server that I just want to put log information to, and I don't want to have collisions obviously. Can I tell if the file is open already?

I would have the code loop until the file has been closed and then go ahead and do its thing. Alternatives are welcome. Databasing is an option, but I'd like to know anyway if the file can be "read" for open state.

View Replies View Related

Using File System Object

I have recently built a web interface to handle files on my network at work. There has been another system in effect for quite some time, and we can't phase it out just yet. In this older system there is a lot of data pointing to files in a particular directory.

PHP Code:

// doesn't work.  mypath=" heserversomedirectoryThat Has. a Decimal"  // works  mypath=" heserversomedirectoryThat doesnt have a Decimal"       Set fs = CreateObject("Scripting.FileSystemObject")       Set f = fs.Getfolder(mypath)       Set fc = f.SubFolders 

View Replies View Related

File System Object

I have an ASP Page that reads in the contents of a directory on the web server. My page hangs when it gets to 'MyFolder=set fso.GetFolder(FlrPath)'.

The FldrPath holds the correct path and fso has been set to

'Server.CreateObject("Scripting.FileSystemObject")'

what could be causing this?

View Replies View Related

File System Object

Does using the File system object multiple times across the page to check if relevant files exist use a lot of memory/server resource etc?

if this were the case, I was going to change this to check a DB field instead. ie when a file is uploaded then this is logged accordingle in the DB, then it can be this field used to check as to whether to display it or not - or are either equally.

View Replies View Related

File System Object

i am unable to create new folders using file system object. the createfolder method doesnt work....the progress bar becomes slow...and no folder is created....but the other methods such as folderexists work....i have also checked the permissions...all folders have read/write..

View Replies View Related

Create A File In Client System

How can i save the textarea(retrieved from DB) data to client system as a textfile.
I am using filesystemobject to create a text file with the path

set fso=server.createObject("scripting.filesystemobject")
set ctext=fso.createtextfile("c:mydata.txt",true)
ctext.close
set ctext=nothing
set fso=nothing

But it is storing in the server cwebserver c: drive)
My users will access simultaneously in my LAN. They use these textfiles to print in DOS mode. Coz it contains large and formated data and to print faster.
How can i store the generated output to the client system only instead of server. B'coz the data generated is diff for each user.

View Replies View Related

Save File To Client System

How can i save the textarea(retrieved from DB) data to client system as a
textfile.I am using filesystemobject to create a text file with the path

set fso=server.createObject("scripting.filesystemobject")
set ctext=fso.createtextfile("c:mydata.txt",true)
ctext.close
set ctext=nothing
set fso=nothing

But it is storing in the server cwebserver c: drive)
My users will access simultaneously in my LAN. They use these textfiles to
print in DOS mode. Coz it contains large and formated data and to print
faster.
How can i store the generated output to the client system only instead of
server. B'coz the data generated is diff for each user.

View Replies View Related

File System Object Rollback

Is there any way of rollback any changes made by the file system object in
the event of an error. I delete a file and copy one somewhere and the copy
fails is there anyway to rollback the delete. Essentially a file system
version of a transaction.

View Replies View Related

File System Object Problem

I have created a function to remove file from the webserver, but it's not working of course...I am running IIS5.1 on WindowsXP. Here is a copy of my function Code:

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

File System Object Error

i am looking into using the File System object on an intranet through ASP so as the user can move files from there local drive onto the server drive.

i have got the code working moving files from one local drive to another but a problem arrises when i transfer from a local drive to a mapped network drive (the server).

the errror is: Permission Denied

the mapped network drive has full read and write access.

any ideas as to why this is happening, or is there a better way?

View Replies View Related







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