Hi, i am using Umbraco Forms 10.2.0 in Umbraco 10.3.2
I have an api controller that receives IFormCollection values and want to save it to an umbraco form. I have succesfully made it using IRecordFieldStorage, but the problem is when i have a field of type file upload.
I am using axios to post the values, set the header content type to "multipart/form-data" and send the data as FormData so i can received the files.
What i am receiving is a value of type "FormFile" and when i try to save it to the record using InsertRecordField from IRecordFieldStorage i get this error: "Object must implement IConvertible".
Which format is expecting the record field storage to have a file upload?
I cant get the documentation right for that situation.
Do i have to manage the file saving and pass the path? i guess the Umbraco Forms api should do that task so i can export the form records with proper file uploads.
Saving Umbraco Forms records programatically with file uploads gets "Object must implement IConvertible" error
Hi, i am using Umbraco Forms 10.2.0 in Umbraco 10.3.2
I have an api controller that receives IFormCollection values and want to save it to an umbraco form. I have succesfully made it using IRecordFieldStorage, but the problem is when i have a field of type file upload.
I am using axios to post the values, set the header content type to "multipart/form-data" and send the data as FormData so i can received the files.
What i am receiving is a value of type "FormFile" and when i try to save it to the record using InsertRecordField from IRecordFieldStorage i get this error: "Object must implement IConvertible".
Which format is expecting the record field storage to have a file upload?
I cant get the documentation right for that situation. Do i have to manage the file saving and pass the path? i guess the Umbraco Forms api should do that task so i can export the form records with proper file uploads.
is working on a reply...