Merge pull request #2030 from jitendra-webkul/1.0

Issue #1781 fixed
This commit is contained in:
Jitendra Singh 2020-01-10 19:23:10 +05:30 committed by GitHub
commit 40f34d2ab0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ class ProductDownloadableLinkRepository extends Repository
foreach ($data as $type => $file) {
if (request()->hasFile($type)) {
return [
$type => $path = request()->file($type)->store('product/' . $productId),
$type => $path = request()->file($type)->store('product_downloadable_links/' . $productId),
$type . '_name' => $file->getClientOriginalName(),
$type . '_url' => Storage::url($path)
];

View File

@ -32,7 +32,7 @@ class ProductDownloadableSampleRepository extends Repository
{
if (request()->hasFile('file')) {
return [
'file' => $path = request()->file('file')->store('product/' . $productId),
'file' => $path = request()->file('file')->store('product_downloadable_links/' . $productId),
'file_name' => request()->file('file')->getClientOriginalName(),
'file_url' => Storage::url($path)
];