Closed AllAboutLearningPress closed 3 years ago
@dyner Confirming that eleven gigabytes is the max file size for .psd. .psd files will be rendered as a normal image for viewing. But when downloaded, original file will be downloaded.
@dyner Confirming that eleven gigabytes is the max file size for .psd. .psd files will be rendered as a normal image for viewing. But when downloaded, original file will be downloaded.
Correct.
Search by image, and general images upload:
So it comes to this:
That's how I implemented it, but feel free to propose alternatives. The current result can be seen at the fe
branch.
P.S.: not sure if image view page should also have a search-by-image thing on drag-and-drop (I think it doesn't, and currently it only have an upload)
@andreyvolokitin At first look I think you handled the issue excellently. I'll let you know if I have any ideas as the project progresses.
The one downside is that the browser window doesn't gets active/focused right away (if it wasn't already) on file drag. So to be able to track a key press, the browser window should be first focused. For that a mouse cursor should stop, then wait a bit, then window gets activated, then it can receive key presses. Maybe something can be done about it. But the 2-drop-zones approach also have a downside — when dragging a file into the window, the target zone can be obscured by i.e. overlaying OS folder window containing dragged files. With 1 zone it doesn't matter, if you can drop anywhere, you're (almost) good to go
Another approach is to chose to search after the drop is finished and an image starts uploading regularly — i.e. click "search by this image" when it is already uploading in a standard detailed upload screen. But that seems like a complex UX
(So I made the keyboard management and the instruction message to activate only when the browser window gets a focus)
There is no file size limit for now. I will be keeping an eye on the user uploaded image sizes. To see if we need to add one. As this is a closed software we are mostly safe on this.
.png
,.jpg
, etc). 11gb for source (.psd
), however most are around 15mb.