Forums/Help from the Community/Community Questions & Answers

Answered

Picture uploading, how to catch the name of the picture being uploaded?

Mika Friman
asked this on Jun-07 12:48

I have basic form with few elements, all in results[''] array, and everything goes fine, picture is being uploaded and contents are available for use, except that I can't get the name of the uploaded picture. How should this be done?

 

R, Mika 

 

Comments latest first

Mika Friman

useing Class Method : set, and passing list of arguments, data-class has same column names and adding the new item works just fine, problem is with updating.

Jun-09 2011 07:18.
Mika Friman

Found out that if adding new data-element, posting to the data class value array newPerson, including: name, title, image. Hammerkit automatically adds the file id as value to be put on the data-field.

 

BUT, if updating old input with Object interface and with set-attribute, hammerkit just sets the personnel.image's value as a:1:{s:29:"HammerKit_FileUpload:oZUvbmqf";s:9:"Mika2.jpg";}

Jun-09 2011 07:17.