user3242861
user3242861

Reputation: 1929

Php - upload file to special characters directory

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

Answers (1)

roberto06
roberto06

Reputation: 3864

You have to use utf8_decode(), as such :

Input::file('file')->move(utf8_decode('/recepção'), 'file.pdf');

Upvotes: 3

Related Questions