CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Persits Upload control

Print topic Send  topic

Author Message
Bret

Posts: 13
Posted: 12/19/2006, 6:19 AM

I am trying to use the FileUpload Component with Persits.Upload - but the code in classes.asp does not work - returns an error.
Microsoft VBScript runtime error '800a01c2'   
  
Wrong number of arguments or invalid property assignment: 'mvarUploadObject.Save'   
  
/UsedEquip/Classes.asp, line 1820   

Code is as follows:
Set mvarUploadObject = Server.CreateObject("Persits.Upload")  
mvarUploadObject.IgnoreNoPost = True  
mvarFilesCount = mvarUploadObject.Save  

According to the Samples provided with Persits.Upload the syntax for the .Save command is .Save(Dir As String)

Classes.asp does not pass the Dir - how do I correct. There are 2 dir elements on the component - 1 for temporary folder and 1 for file folder

I have populated the control with the following values ->

Name: FileUpload1
Caption: Photo Upload
Control Source Type: Database Column
Control Source: Photo
Required: No
Error Control: <blank>
Temporary Folder: Temp
File Folder: images
Allowed file mask: *
Disallowed File mask: <blank>
File Size limit: 100000

In Project Settings - Server/Script- File Upload Component: "Persits Software" ASPUpload

I can make the component work by writing my own code - but that defeats the purpose of CodeCharge doesn't it.

1) How do I pass the directory identified in the File Folder property of the control to the Save function?

2) I see that a few users in the forum are using the Persits control -- How is that? Can someone provide a working example ?
View profile  Send private message
GeorgeS

Posts: 206
Posted: 12/20/2006, 9:58 PM

I went through the same errors with Persits Upload ~2-3 years ago.
The thing is that practically all webhosts don't support .Save method due to security reasons and require using .SaveVirtual one.
As I understand, CCStudio uses .Save method ...
So, I would suggest for now not messing up with Persits and using ASP/VBscript upload if you want everything working right away.

I use it and it works just fine.

_________________
GeorgeS
View profile  Send private message
Bret

Posts: 13
Posted: 12/21/2006, 5:42 AM

Ok - I have changed the Project Settings to ASP/VBScript - but now I am getting
An error occured when uploading file specified in FileUpload1. Error description: Microsoft VBScript runtime error, Permission denied
When I change the Temp Folder setting to <blank> - the file size of the file in form shows up in the control, but I get
An error occured when uploading file specified in FileUpload1 into temporary folder. Error description: Microsoft VBScript runtime error, Permission denied.
I have given "everyone" full permissions to these directories and even the app folder -- stil no luck (currently hosted on a fully secured intranet IIS6 web server). What am I missing ?
View profile  Send private message
navneet
Posted: 12/21/2006, 10:05 AM

hi bret

i had also experienced the same problem a few days ago, i switched from ASP/VBscript to ASP/VBScript Upload using ADODB.Stream
GeorgeS

Posts: 206
Posted: 12/21/2006, 9:02 PM

bret,
this is a very common problem with IIS6/WinXP - they restrict almost everything by default.
I'll try to remember what I did with it to fix this 'permissions" issue.
Sometimes simple re-booting helps...
_________________
GeorgeS
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.