-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keep original media filename after upload #2173
Comments
All fields are required when opening issues: https://github.com/the-control-group/voyager/blob/master/ISSUE_TEMPLATE Please update your issue description with the missing data and we'll reopen this |
@fletch3555 Sorry, I haven't seem your answer. Issue updated with version details. |
This issue is almost 8 months old... are you still having the same problem with the same version....? |
Just add the below line in the field under Tools->Database->edit bread field name options |
This issue has been automatically locked since there has not been any recent activity after it was closed. If you have further questions please ask in our Slack group. |
Description:
Voyager media manager uses store() method from Laravel to save uploaded files.
The store() method encrypts the filename in a md5 hash with a random number from 0-999, thus generating a unique filename.
However, I would like to upload the file while preserving it's name.
I'm opening this issue to request an option on Voyager config for that. :)
Changing:
To
$file = $request->file->move($realPath, $request->file->getClientOriginalName());
In the upload method, at:
voyager/src/Http/Controllers/VoyagerMediaControler.php:176
Uploads the file while preserving it's name
The text was updated successfully, but these errors were encountered: