Heroku only gives you an instance to host your app but doesn't give you a file system to write to, that means you can't directly upload files, if you need to make use of the file system for uploading and reading of files you might want to use like Digital Ocean droplets or AWS EC2, the most efficient way for you with Heroku will be to use Cloudinary or AWS S3 buckets, these services are optimised for file handling and delivery too.
Heroku only gives you an instance to host your app but doesn't give you a file system to write to, that means you can't directly upload files, if you need to make use of the file system for uploading and reading of files you might want to use like Digital Ocean droplets or AWS EC2, the most efficient way for you with Heroku will be to use Cloudinary or AWS S3 buckets, these services are optimised for file handling and delivery too.
Thank you...
I had the same issue. Thanks for replay, really helped me.