Hello list,<br><br>I am creating a form which includes a fileUpload element. Whenever the user changes the file I want to receive a callback with the new filename so I can do some server-side changes like setting the correct Content-Type etc.<br>
<br>I am using Seaside 2.9.0-alpha2 with JQuery. <br><br>Currently the fileUpload code looks like this:<br><br> html paragraph: [ <br> html fileUpload<br> id: (uploadId := html nextId);<br>
name: 'file';<br> onChange: ((html jQuery id: 'pid') load<br> addParameter: 'dummy' -> ((html jQuery id: uploadId) value);<br> html: [ :h | self hanldeNewFile: h. h text: 'Haai' ])].<br>
<br>I can add the filename to the callback url using addParameter: but I don't know how to read this parameter from the callback Smalltalk code. I also tried to "serialize" the fileUpload element but this doesn't seem to work for file input elements.<br>
<br>Can anobody tell me how I can read the parameter value from the callback block?<br><br>Regards,<br>Jan.<br><br>