This topic is locked

RENAME UPLOADED FILES 6.3

12/7/2010 5:22:48 PM
ASPRunnerPro General questions
W
webwork author

I have SQL2000, ASPRUNNER 6.3

I need to rename uploaded images to a database field and I had it working in ASP Runner Ver 6.2
I saw this http://xlinesoft.com/asprunnerpro/docs/rename_uploaded_files.htm for ver 6.3
But the syntax has an error with the code "->destFilename" and the update fails after I tried to change it to correct it.
The syntax fails with the integrated ASPRunner checker.
The old code solution had filename in () parenthisis but that did not help me.
Below is the 6.3 code:
pageObject.filesToMove(0)->destFilename = values("ID") & ".jpg"
values("Field_Name")= values("ID") & ".jpg"
The page fails to load at all.
Any suggestions??

Sergey Kornilov admin 12/8/2010

Here is the correct code, thank you for pointing.

pageObject.filesToMove(0).destFilename = values("ID") & ".jpg"

values("Field_Name")= values("ID") & ".jpg"


Make sure you replace ID and Field_Name with the actual field names.

W
webwork author 12/8/2010



Here is the correct code, thank you for pointing.

pageObject.filesToMove(0).destFilename = values("ID") & ".jpg"

values("Field_Name")= values("ID") & ".jpg"


Make sure you replace ID and Field_Name with the actual field names.


I tried that but now I get an error on page update:
Microsoft VBScript runtime error '800a01a8'
Object required: 'pageObject.filesToMove(...)'
/ALL_ITEMS_edit.asp, line 0
I tried all variations of the code which I have working with VER 6.2 and the simplist code fails on VER 6.3

Sergey Kornilov admin 12/8/2010

webwork,
We'll be glad to assist you with this. Post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program.