-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Bug: File Uploads not working #30
Comments
Yep, looks like it's a typo. I'm not sure how it's working in production though. |
error uploading file: open uploads/profile_logo_UVBGW_a5c39e85beb37d2090c7ab84b9b12381.jpg: no such file or directory I am facing this same issue while uploading media |
Have you mounted a filesystem and made an uploads directory and set that path in the upload settings? On an ordinary Linux server, this would be straight forward, but on Heroku, you've to do this manually. |
Hi, Knadh, mkdir listmonk && cd listmonk Anyway, each and everytime I am facing the same file upload error as___ Error uploading file: open /root/listmonk/uploads/emailsecurityconciousness.jpg: no such file or directory Yes of course in my ubuntu 20.04 machine I have created the 'uploads' directory in my project directory. Like_ Please help for the resolution. |
Looks like the directory is not mounted in the container. @mr-karan would you be able to take a look? |
Yeah, You'll need to mount the upload folder to the container. Edit this in your
The value of |
Thank you so much 'Mr. knadh' & 'Mr. mr-karan'. |
Per the docs I'm using this:
Are you saying we should use one or both of these?:
Also, the docs show this (no period and one space indent):
And you say:
EDIT: mostly solved here: #1169 (comment) |
Steps to reproduce
Downloaded the latest release from github:
curl -sL https://github.com/knadh/listmonk/releases/download/v0.2.2-alpha/listmonk_0.2.2-alpha_linux_amd64.tar.gz | tar xz
Created a new config file
./listmonk --new-config
Spawned an ephemeral postgres container
docker run -p 5432:5432 -e "POSTGRES_DB=listmonk" -e "POSTGRES_USER=listmonk" -e "POSTGRES_PASSWORD=listmonk" postgres:latest
Configured DB
./listmonk --install
Created an uploads folder in the current directory
mkdir uploads
Started listmonk
./listmonk
Visited http://localhost:9000/campaigns/media and uploaded a file
![DeepinScreenshot_select-area_20191025131954](https://user-images.githubusercontent.com/5689132/67553166-2e5c5180-f72a-11e9-9d9a-38648cb5a47d.png)
What happened
Got a 404 on the uploaded file.
http://localhost:9000/uploads/DeepinScreenshot_select-area_20191009181805.png
Expected scenario
The file should have been previewed correctly, not 404.
The text was updated successfully, but these errors were encountered: