This topic is locked

File upload error - Operation is not allowed in this context

2/16/2006 6:16:17 PM
ASPRunnerPro General questions
T
theresafer author

I need to be able to allow users to upload files to a directory on the server. They will be WMV files so I don't want to store them in the database as they may be large files. I followed the instructions both

here: http://www.asprunner.com/forums/index.php?...&hl=file+upload

and here: http://www.asprunner.com/forums/index.php?showtopic=874
and I get the following error when I try to upload a file.
Technical Information (for support personnel)
Error Type:

ADODB.Field (0x800A0C93)

Operation is not allowed in this context.

/filelists_add.asp, line 460
Browser Type:

Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1)
Page:

POST 13747971 bytes to /filelists_add.asp
POST Data:

error '80020009'

Exception occurred.
/iisHelp/common/500-100.asp, line 223
I am running IIS on my WinXP Pro machine - so the webpath is localhost - would this be a problem (since I am not really uploading to another box)? I have checked all the permissions on the Uploads directory.
I'm on a tight timeframe so any help would be greatly appreciated!
Thanks

Theresa

T
theresafer author 2/16/2006

Well after playing around with it I got it to work, what I did was set my upload field to view as document download and the edit as field as document upload. Both point to Uploads as the directory for the file. I kept the changes to the uploader.asp as described in the link above.

Admin 2/17/2006

Theresa,
In ASPRunner 3.2 and 4.0 you can upload files to the directory on server without adittional changes in the code.

Select Document download in View as dialog and Document upload in Edit as dialog on the Formatting Tab.

Don't forget to set read/write permissions to the directory, where uploaded files will be saved.

796 3/5/2006

<img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=8358&image=1&table=forumreplies' class='bbc_emoticon' alt=':huh:' /> Will this work if your using Microsoft Access Database? What field types should be used in the database? I'm using version 4 and it doesn't seem to be working for me?

Theresa,

In ASPRunner 3.2 and 4.0 you can upload files to the directory on server without adittional changes in the code.

Select Document download in View as dialog and Document upload in Edit as dialog on the Formatting Tab.

Don't forget to set read/write permissions to the directory, where uploaded files will be saved.

Admin 3/6/2006

Hi,
yes, it will work with Microsoft Access Database.

Please set type of field as Text.