CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 File Upload Object is not working.

Print topic Send  topic

Author Message
Motaro

Posts: 8
Posted: 11/17/2006, 7:27 AM

I have the "Persist Upload" component installed in the server working correctly (i know because of the samples that come with the component). I set up the property of the project file in codecharge to use that component. Then i try to use the form File Upload builder to create a simple upload, it creates everything and i publish.

It gives me this error :

"An error occured when uploading file specified in FileUpload1. Error description: Microsoft VBScript runtime error, Permission denied."

Permissions are set correctly i just put Everyone and IUSR to be able to write to the upload folder, I tried to follow the code created by CCS and i could found nowhere where instantiate the component, the only part that the code does something like that is in the

"Class clsFileUpload
...

Private Sub Class_Initialize()
Set CCSEvents = CreateObject("Scripting.Dictionary")
Set fso = CreateObject("Scripting.FileSystemObject")

..."

So as you can see there's no persist calling or at least my eyes can see. I would like to make this work without using custom coding.
_________________
"Democracy is the name we give others when we need something from them"
View profile  Send private message
marcwolf


Posts: 361
Posted: 11/20/2006, 7:25 PM

Hi there Motaro

I use the same component and know what you are going through :>

Ok - several things you can try.

1. Specify the temporary folder in the comonents properties. By default it will want to use the windows/temp area as it temporary upload and normally this does not have the permissions to do this. Its also a good idea to keep the webs processes as far away from you windows area as possible :>

2. When you are setting up the security - click the advanced button and then make sure that the "Inherit permissions from parent "is unclicked, also it is an idea to click the "Replace Permissions oin all child object"
When you unclick the Inherit permission you will be asked to copy the permissions. Do so.

Now - look at the Permission entries. If necessary you can change these on individual users to allow writing etc. This will then filter down to any subdirectories that you might have under your upload area.

Because NTFS has an inheritiance system even though you may have given someone write permissions on a directory - there might be a directory highter up that has removed the write permissions for this user. And thus that will take precedence.

Hope this helps..

Dave

_________________
' Coding Coding Coding
Keep Those Keyboards Coding.
Raw Code!!!!!!!
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.