Allow upload of pdf

Asked

Viewed 104 times

0

Need to allow pdf upload, how do I? see validation

public $rules = array(
    'file' => 'required|mimes:png,jpg,jpeg,gif,pdf|unique:images,local,NULL,id,type,upload'
);

I added pdf but it didn’t work, didn’t upload?

  • some error is shown?

  • maybe they are converted pdf’s that are with different mime-type, probably as octet-stream. Add this to your mime list

  • Shows no error, just does not uplod

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.