Hi,
I have a custom blob field in the table WebClientUserInfo which I am trying to store an image in, with the intention of then using this image during a mail merge.
I need to be able to open a file browser dialog and select an image file from the user details screen and then save the selected image against that user (a bonus would be displaying the current saved image on the user details screen).
So far, I have managed to create the select file dialog by appending an input (type=file) element into the DOM on the client click of a button on the form. On selection of a file in the dialog, this element then contains a .files array with the selected file object.
I now need to save the file to the custom field and that is where i'm stuck. How can I...
(a.) pass the file from the client script to the server
(b.) read the file object if necessary and save it to the custom field
Or if there is a better, simpler way to do all this then im open to suggestions.
Regards,
Lee |