FileUploadField - IllegalStateException - cascade PERSIST

Hello guys,

i already searched through some Topics regarding “cascade PERSIST” Error. But there was nothing fitting my Error/needs.

I have an Entity “AgDokument” with an “FileDescriptor” Attribute:

image

When i try to upload a File, and use the Upload Button, generated by the fieldGroup Object:

image

it works fine. when i try to use an additional “FileUploadField” Object, i get the following Error:

image

Does somebody ever experienced this? the Datasources of the Screen seem to be fine, because when using the fieldGroup Upload Button, it works completely fine.

I am already Familiar with:

FileUploadField

Looking forward to your help.

Best Regards
Daniel

solved this one, had to change fileStoragePutMode to IMMEDIATE

image

anyone has an idea why MANUAL doesn’t work, even with the in the controller defined store code ? I did it exactly as described in FileUploadField

:joy::joy::joy:

https://www.cuba-platform.com/discuss/t/working-fileuploadfield-using-immediate/4436