Upload icon indicating copy to clipboard operation
Upload copied to clipboard

there is no $file->setName($new_filename); method in new version?

Open shokri-navid opened this issue 9 years ago • 3 comments

i cannot find setName method in my file class ??? its my code : $storage = new Upload\Storage\FileSystem(AppSetting::UploadDirectory()) ; $upload = new Upload\File("uploader",$storage);

shokri-navid avatar Jan 13 '16 10:01 shokri-navid

'File' can contain multiple files, so you first need to loop over it.

foreach($upload as $file) {
  $file->setName("new_filename");
};

wimverstuyf avatar Aug 02 '16 13:08 wimverstuyf

@navid-dada you solved your problem with @wimverstuyf's answer?

williamespindola avatar Aug 26 '16 04:08 williamespindola

I have the same issue here.

josecarlosweb avatar Apr 02 '23 23:04 josecarlosweb