Upload
Upload copied to clipboard
there is no $file->setName($new_filename); method in new version?
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);
'File' can contain multiple files, so you first need to loop over it.
foreach($upload as $file) {
$file->setName("new_filename");
};
@navid-dada you solved your problem with @wimverstuyf's answer?
I have the same issue here.