[Kss-devel] File upload when submitting a form via kss.

JC Brand jc at upfrontsystems.co.za
Sun Nov 11 13:15:49 CET 2007


Hi guys,

I'm using PloneAzax 1.1alpha1 on Plone 2.5.3.

I have the following kss rule:

input.kssPreviewAd:click {
     evt-click-preventdefault: True;
     action-server: @@wboutils/previewAd;
     @@wboutils/previewAd-kssSubmitForm: currentForm();
}

One of the fields in the form I'm submitting is an ImageField. Normally 
the value on the REQUEST for an ImageField is a FileUpload object, but 
with kss the  value in REQUEST.kssSubmitForm is a string containing the 
filesystem path to the image file.

Is there anything that I can do to ensure that the form is marshaled in 
such a way that I can get a FileUpload object instead of a string?

Thanks for any help.

JC


More information about the Kss-devel mailing list