Comments (7)
it works, thank you! 😁
from pocketbase.
when trying to download through the admin panel it also fails with the error "Couldn't download - something went wrong"
Assuming that your item.avatar
is image filename, does this means that you can't see its preview/thumb in the admin UI?
If you are not seeing the preview/thumb in the admin, could you post the response from the browser "Inspect tool > Network" tab?
btw. More information about the file download url could be found here - https://pocketbase.io/docs/files-handling/#file-url or https://pocketbase.io/docs/api-files/
from pocketbase.
item.avatar is the image filename
I cannot see it in the admin UI
"Inspect tool > Network > Response > This request has no response data available."
from pocketbase.
This is strange. I think the only place in the file api that could return 400 is when we initialize the file storage system - https://github.com/pocketbase/pocketbase/blob/master/apis/file.go#L53.
But if you were able to upload it, then you should be able also to read it.
I'll try to test it in my Windows 10 VM, maybe is a platform specific issue related to the mime types similar to issue #6.
from pocketbase.
I do need to run it with "--http="127.0.0.1:8090"" otherwise it exits with "2022/07/10 09:33:53 listen tcp: lookup localhost on 192.168.0.1:53: no such host"
I just checked and the thumbnail is also generated correctly, I can open it and it displays in my file browser
from pocketbase.
I've just tested it and indeed there is an issue when using time.LoadLocation
on Windows - golang/go#38453.
time.LoadLocation
is currently used to set the Last-Modified
header timestamp when serving files.
I'll do some tests and will see if I can manage to fix it without loading tzdata for the OS.
from pocketbase.
This should be fixed in the latest v0.2.2 release.
To avoid embedding the tzdata package, which will increase the binary size with almost 0.5MB, the current implementation will fallback to default browser value and will skip the explicit Last-Modified
header if time.LoadLocation
fails.
from pocketbase.
Related Issues (20)
- How to expand ModelQuery results?
- JSON fields not showing in admin item drill-down HOT 2
- Problem with operator: `?=` HOT 2
- Admin interface loads slowly because of the created field HOT 1
- How can I filter a date using the equal = operator ? HOT 2
- Is it possible to clear out all records leaving the structure intact?
- Proposal: Add a POST log's route HOT 3
- Is it possible to override default console output
- Proposal: automatically load custom certificates from /pb_certificates HOT 1
- [Feature] Add a 'Duplicate' option to the selected record in the Admin UI HOT 1
- Feature Request: RSA Token/ minting record in token for M2M auth HOT 1
- Incorrect file name mangling with dual extensions files HOT 3
- Cross joins not working in view collections HOT 7
- Sending multiple emails in one cron hook was not completed without error message HOT 3
- JS Hooks not working on M1 Mac
- Feature Request: Templ HOT 1
- API rules operators HOT 1
- Feature Request: Support for Environment Variables in API Rules HOT 8
- [Bug] rich text editor discards html when edited from a separate relationship table HOT 2
- Database transaction lock causing program to become unresponsive. HOT 2
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 pocketbase.