Comments (7)
It should already do this. Uploaded images should use a format similar to this image-2024-01-29T08-20-16.004Z
. Can I ask what browser you're using?
from flatnotes.
I have tried in EDGE and it works as you say, but in Firefox, it pastes it as "image.png" and therefore you can only paste one image, because then it already exists.
Windows 11 - Firefox last version
Images copied to the clipboard from the Windows snipping tool, or any image on the clipboard
from flatnotes.
Well, this is odd. I use Firefox myself (on Windows 11) and don't see this issue. Can you please take a look at the console messages in dev tools and let me know if you see any errors.
from flatnotes.
This is de container log
WARNING: Breaking changes introduced in version 3.x:
- The port flatnotes uses inside the Docker container has been changed to 8080 (previously 80).
- To accompany the above change, support for the PORT environment variable has been removed.
- The note directory inside the Docker container has moved from /app/data to simply /data.
Setting file permissions...
Starting flatnotes as user 1026...
2024-01-30 11:47:15 [INFO]: Creating new index
INFO: Started server process [1]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:8080 (Press CTRL+C to quit)
INFO: 172.29.0.1:50746 - "GET / HTTP/1.1" 200 OK
INFO: 172.29.0.1:50746 - "GET /src.dfee3e16.css HTTP/1.1" 200 OK
INFO: 172.29.0.1:50752 - "GET /src.ddcda8f6.js HTTP/1.1" 200 OK
INFO: 172.29.0.1:50752 - "GET /apple-touch-icon.cb3e6a74.png HTTP/1.1" 200 OK
INFO: 172.29.0.1:50746 - "GET /favicon-32x32.7917f576.png HTTP/1.1" 200 OK
INFO: 172.29.0.1:50752 - "GET /api/config HTTP/1.1" 200 OK
INFO: 172.29.0.1:50752 - "GET /api/search?term=*&sort=lastModified&order=desc&limit=5 HTTP/1.1" 401 Unauthorized
INFO: 172.29.0.1:50776 - "POST /api/token HTTP/1.1" 200 OK
INFO: 172.29.0.1:50776 - "GET /api/search?term=*&sort=lastModified&order=desc&limit=5 HTTP/1.1" 200 OK
INFO: 172.29.0.1:50804 - "POST /api/attachments HTTP/1.1" 200 OK
INFO: 172.29.0.1:50804 - "GET /attachments/imagen.png HTTP/1.1" 200 OK
INFO: 172.29.0.1:50804 - "POST /api/attachments HTTP/1.1" 409 Conflict
I have set up a new flatnotes docker on another server and I have tried again from another PC on another network and the result is the same, it always pastes as "image.png"
To capture the piece of image on clipboard, in Windows 11, I press "windows key" + "shift" + "S" and crop the image, then I enter flatnotes and press "CTRL" + V to paste. It paste always as "imagen.png" and the next paste of any note give error "alredy exist imagen.png"
from flatnotes.
Ah, I see the issue. My naming logic only kicks in when the image name is "image.png" which is the default name given to screenshot pastes. It appears this is language dependent as yours is "images.png" (which makes sense).
I'll need to see if there's a more robust way I can detect screenshots.
from flatnotes.
The error continues for me in Windows 11 with Firefox when pasting from the clipboard
Sorry, this project looks good but I'm back to obsidian
from flatnotes.
The fix for this hasn't made an official release yet and is currently only available when using the develop
tag. Perhaps this explains what you're seeing?
from flatnotes.
Related Issues (20)
- Style issues with code blocks HOT 5
- [Feature Request] Attatch Files in Notes HOT 1
- [Feature Request] OCR Software for Pictures and maybe pdf Files
- Images not showing up HOT 1
- [Feature Request] submenu/folders HOT 9
- Searching Bug HOT 2
- Where are all the Notes in the Server File Manager? HOT 4
- Number List issue HOT 1
- Add config option to show "Recently modified" in read-only mode HOT 1
- Multiple Errors HOT 2
- Docker Port revisited HOT 4
- Retain scroll position when switching to edit mode HOT 1
- Install uvloop alongside Uvicorn for performance improvements HOT 4
- Add ability to change port number HOT 2
- [Feature Request] Add cli interface
- /entrypoint.sh: 34: exec: 1000:1000: not found HOT 8
- Keep container in "starting" state HOT 3
- 4.0.4 healthcheck is failing HOT 3
- Support for alternate base url HOT 4
- [Feature] Disable TOAST UI Editor usage statistics 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 flatnotes.