Comments (7)
I was facing the same problem with every file. Your storage might not be linked.
Type:
composer dump-autoload
php artisan storage:link
This might solve the issue for the application cannot read any uploaded files.
And for the @Kipcubic issue:
In the Controllers/CourseController.php
file, in the readPDF
method :
Replace this line
with this:
$file = public_path('storage/course/'.$file_details->course_id.'/'.$file_details->file_name.'.'.$file_details->file_extension);
and this line:
with this:
return response()->file($file);
This solved it for me, might work for you as well.
from ulearn.
I'm facing the same issue with video files as well as audio items etc
from ulearn.
@amitad16
Thank you so much for sharing the solution.
I am able to solve the PDF related issue.
But till now not able to solve the banner and video upload issue.
Even I have tried you suggestion.
If you have the proper code, please share.[Zip File]
My mail id is : [email protected]
from ulearn.
Hi @amitad16 , I am also facing same issue, even after linking the storage, cold you pls share the zip with me too ? my email is [email protected]
from ulearn.
php artisan storage:link
GET http://www.localhost/storage/course/3/raw_1609688970_intro-16096889704882.mp4 404 (Not Found)
from ulearn.
@amitad16 Cảm ơn bạn rất nhiều vì đã chia sẻ giải pháp. Tôi có thể giải quyết vấn đề liên quan đến PDF. Nhưng cho đến bây giờ không thể giải quyết vấn đề tải lên biểu ngữ và video. Ngay cả tôi đã thử đề xuất của bạn. Nếu bạn có mã phù hợp, vui lòng chia sẻ. [Tệp Zip] Id thư của tôi là: [email protected]
hello, have you fixed the error, if so can i ask for the zip file, thank you very much
from ulearn.
Tôi đã gặp phải vấn đề tương tự với mọi tệp. Bộ nhớ của bạn có thể không được liên kết.
Kiểu:
composer dump-autoload
php artisan storage:link
Điều này có thể giải quyết vấn đề ứng dụng không thể đọc bất kỳ tệp nào đã tải lên.
Và đối với@Kipcubicvấn đề:
Trong
Controllers/CourseController.php
tệp, trongreadPDF
phương thức:Thay thế dòng này
Với cái này:
$file = public_path('storage/course/'.$file_details->course_id.'/'.$file_details->file_name.'.'.$file_details->file_extension);
và dòng này:
Với cái này:
return response()->file($file);
Điều này đã giải quyết nó cho tôi, cũng có thể làm việc cho bạn.
I can't view pdf, video and audio files please help me
from ulearn.
Related Issues (20)
- Unsupported strict types HOT 1
- Website down HOT 2
- Upload media like image and video error HOT 4
- composer update [ErrorException] HOT 1
- Video mp4 no reproduce HOT 1
- certificate HOT 2
- Error on click button Upload without file in the input (instructor promo video)
- how can add " Certificate of Completion " to the course ??
- Demo not working
- Ulear
- Demo link is broken
- Erorr [Composer Update] HOT 1
- payment gateway for student not working
- Enrol problem!
- how to add embed link youtube
- I can't upload audio video files nor pdf , please help me
- composer update error: php version
- Video not playing HOT 7
- Blade template: Title does not reflect course name
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ulearn.