Expand my Community achievements bar.

fileupload's fileNameParameter being deleted on second save

Avatar

Level 2

In my component's dialog I have a fileupload field for use with an image. When I test it out with an instance of the component, the initial upload works and the image is saved when I close the dialog, but when I reopen the dialog and save again the image is cleared. On closer inspection in crxde, the fileNameParameter (eg "./image/fileName") is being deleted following this second save and breaking the image. Recreating it manually restores the image, but it's of course deleted the next time the component instance is edited. Does anyone know of a way to fix this?

2 Replies

Avatar

Level 10
       Install the touchui recommend hotfix & make sure filenameparameter is unique

Avatar

Level 2

Sham HC wrote...

Install the touchui recommend hotfix & make sure filenameparameter is unique

 

Are you referring to the Touch-optimized UI Update Pack (Feature Pack 6563)? I have that installed, and fileNameParameter is unique as best I can tell.