Hi, I know this is an old post. I’m trying to migrate our app from 5.3.8 to 5.4.3, and finding the file upload is no longer working. I’m not using t:zone at all. But the file value is always null. I see the JumpStart site (http://jumpstart.doublenegative.com.au/jumpstart/) have the “File Upload” example disabled. Anyone has a working example. Could you please share?
<t:form> <t:errors/> <input t:type="upload" t:id="file" t:value="file" validate="required"/> <br/> <input type="submit" value="Upload"/> </t:form> @Persist @Property private UploadedFile file; public Object onSuccess() { System.out.println(file.getFileName()); File copied = new File("/my/file/location/" + file.getFileName()); file.write(copied); return this; } Thanks, Dongmei On 9/1/16, 12:50 AM, "Chris Poulsen" <mailingl...@nesluop.dk> wrote: Unfortunately I think Carlos is correct. -- Chris On Wed, Aug 31, 2016 at 11:18 PM, Pavel Chernyak <fjfal...@fjfalcon.ru> wrote: > Hi there. > > Maybe you shall anotate field file @Persist? > > > On 31 August 2016 at 23:03, Qbyte Consulting <qbyteconsult...@gmail.com> > wrote: > > > > > I'm always finding that file is null for file upload? If I submit the > form > > without async=true then file value is set and it works. > > > > > -- > With best regards. > Pavel Chernyak >
smime.p7s
Description: S/MIME cryptographic signature