NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: David on October 01, 2018, 04:28:00 AM

Title: NetWebForm - File Upload Using StringTheory
Post by: David on October 01, 2018, 04:28:00 AM
NT 10.34

I'm trying to use a StringTheory object as the storage for a Text field and a file upload field in a NetWebForm.  In the local data I added 2 fields both as Type StringTheory.  Once compiled I get errors because the Nettalk template generated code is still treating those fields as variables and trying to assign data to/from them.

example: p_web.SetSessionValue('stUploadedData',stUploadedData)

In the NetTalk Usergroup video 202 Ashley had a question about uploading 3 files and Bruce showed him how to set the local fields as Type StringTheory.  I was using this as the bases for my setup.  What step am I missing?
Title: Re: NetWebForm - File Upload Using StringTheory
Post by: Bruce on October 01, 2018, 07:36:36 AM
Hi David,

>> I'm trying to use a StringTheory object as the storage for a Text field and a file upload field in a NetWebForm.

Would be nice, but alas that is not supported.

>> In the NetTalk Usergroup video 202 Ashley had a question about uploading 3 files and Bruce showed him how to set the local fields as Type StringTheory.  I was using this as the bases for my setup.  What step am I missing?

That was for a NetWebServiceMethod (where it is supported) - not for a NetWebForm.

I've added it to my board as something to do during the NT11 cycle.

cheers
Bruce