-
Notifications
You must be signed in to change notification settings - Fork 19
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
Unable to access files in subfolders #19
Comments
This doesn't work - it doesn't check these routes at all |
Please, put a complete example. |
Thank you for responding, I have fixed it myself. regarding the subfolder folder - the trailing / in the assets_DIR declaration was causing some issues, so I have defined it like this which has resolved many of the problems
However I had to change this %s/%s - to %s%s or else I was getting a extra / before the file name. Now everything looks resolved. Except that when I use a SVG file - the file gets downloaded but it doesn't show up. But the browser opens the SVG file if I access the html page offline. Do you have any thoughts?
|
You have to handle manually the header with a correct mimetype. |
I can't guess if you don't put a code example. And it seems to be the same problem as for SVG: A mimetype problem. |
FYI: throughput of large data transmission can be improved using Example: await send_file(request, filename, segment=256) |
If I have a subfolder, inside the top folder as a webserver it should be able to pick things up, it doesn't. Has this been tested for scenarios other than the given one level directory structure.
The text was updated successfully, but these errors were encountered: