Skip to content
This repository has been archived by the owner on May 5, 2024. It is now read-only.

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

Open
shokri-navid opened this issue Jan 13, 2016 · 3 comments
Open

Comments

@shokri-navid
Copy link

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);

@wimverstuyf
Copy link

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

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

@williamespindola
Copy link

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

@josecarlosweb
Copy link

I have the same issue here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants