> *) This gives me a weblocks error: > "SIMPLE-ERROR: The value of the upload field is incorrect. Please turn > on multipart requests and turn off ajax."
ok so thats easy, just add these parameters to the defview: :enctype "multipart/form-data" :use-ajax-p nil > *) How do i access the uploaded file? > (I see that the method (defmethod parse-view-field-value ((parser file- > upload-parser) value obj...) returns multiple values including the > list of values from the multi-part, and the local file name. I dont > know how these are stored in the 'file' slot in the example above, or > how i would access them). Ok, parse-view-field-value sets the field to the file name. I want to make a :unique file name, and access both the :unique name, as well as the original name sent in the multipart/. *) How can i get both the new unique name and the multipart file name into the file slot, maybe as a list of values? Thanks Mike. > > Cheers > m > On Nov 24, 9:29 pm, mike <[email protected]> wrote: > > > Hi > > > Can anyone point me to a recent example of using file-upload? > > Searching this list gives examples over a year old which seem to be > > before src/views/types/file-upload.lisp was added. > > > Cheers > > > Mike > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "weblocks" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/weblocks?hl=en -~----------~----~----~----~------~----~------~--~---
