Reputation: 1929
I'm having problems when try to save a file in a directory with special characters... for example I have the directory recepção
and it creates a new folder named Recepção
and put the file there.
I'm using laravel framework and I save the file this way:
Input::file('file')->move('/recepção', 'file.pdf');
How can I solve this problem?
Thank you
Upvotes: 1
Views: 539
Reputation: 3864
You have to use utf8_decode()
, as such :
Input::file('file')->move(utf8_decode('/recepção'), 'file.pdf');
Upvotes: 3