EhsanDehghani's avatar

Laravel uploading file with different charset

hi i'm trying to upload files with Persian name like نام فایل but the file uploads and stores with unknown chars name like تقسیم_وظای٠it really stuck me I don't know what to do.

here is my code:

 if ($request->hasFile('fileinput')) {
            $file=$request->file('fileinput');
            $ext=$file->guessClientExtension();

          $request->file('fileinput')->storeAs('contents','نام-فایل.'.$ext);
          
        }
0 likes
1 reply

Please or to participate in this conversation.