Using NodeJS and a local server for development, I’m trying to upload a pdf document to a directory created in “/public” folder.
In the settings I set up links relative to the Site Root:
BTW: Users upload directory is wrong - there should not be public prefix as in assets but it is added automatically after selection of directory.
In my action I have to put the full path and not the path relative to the site root:
Otherwise the upload is not working.
After the upload I write the path into a database:
When I try to write an url it is always a NULL value.
When I try to open the file using the stored path in the database the file cannot be found (404). It can be found using the path without the “public” directory prefix on the beginning of the stored path.
Is is a bug or I’m missing something?
Dominik
Community Page
Last updated:
Last updated: