This content has been marked as final.
Show 2 replies
-
1. Re: File uplaod data overwritten on form upload if s:upload is empty
asgardia Jan 5, 2010 7:47 PM (in response to asgardia)I figured out a work around for this issue. I am not sure it is the most elegant but it works. By checking the length of all the attachment elements and having the set method do nothing the data within the database will not get overwritten.
If anyone can see better way please let me know.
public void setAttachmentData(byte[] data) { if (data.length == 0) { } else { this.attachmentdata = data; } }
Happy Coding
Bryan -
2. Re: File uplaod data overwritten on form upload if s:upload is empty
germanescobar Jan 6, 2010 12:23 PM (in response to asgardia)I would suggest to use a class between your view and the home object. This way you would be able to decide what attributes to change on your entity class.