-
Notifications
You must be signed in to change notification settings - Fork 8
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
Support for non-image files #283
Comments
We run Sipi inside a container. There is no system tmp folder per se that we can use. We would need to mount an external folder into tmp, but then it is the same thing as the others. I would prefere to have a complete directory structure under a single folder as the default setting, e.g.,
so that only one folder needs to be mounted. Also, for long-term preservation, we would need technical metadata. But this is a separate issue. |
@subotic OK, I guess I misunderstood. I thought you said there was already a Docker mount point for |
On Travis we mount tmp, because it was needed for some tests. In production I forgot. I can always add it if necessary. Not hard to do. I would simply prefer if we could simplify it. Less stuff that can go wrong. |
|
After discussion with @lrosenth and @subotic: All content stored by Sipi will be under one directory, which could be called
This makes it easier to move or back up a project's files, because there's just one directory of files per project. Sipi will determine the file type when the file is requested, and respond appropriately: if the base file URL is requested and the file isn't an image, Sipi will return the file instead of @lrosenth expects to be able to do this next week. |
There is also the case of storing images and only serving them over non-IIIF URLs, e.g., icons, watermarks, etc. Could this case also be covered? |
Couldn't these be served over IIIF URLs, too? |
For icons and such, I guess so. @kilchenmann will now for sure. We only need to make sure, that all assets that are served through The only special case is the watermark image. I think it needs to be an absolute path to the image on disk. |
For icons (for resource classes) we want to use an existing library and we store only the name of it. So, we don‘t need to upload an image there. But for a project logo we should use the iiif url. |
Re-posting my question here: As discussed in the last developer meeting, we will need Knora and Sipi to handle PDF really soon now. From what I understood from @lrosenth, it doesn't involve a lot of work on Sipi... If we validate/convert the PDF/A ourselves, when could we expect this support for non-image to be ready? |
End of July at latest!
…Sent from my iPad
On 17 Jul 2019, at 15:58, Marion Rivoal <[email protected]<mailto:[email protected]>> wrote:
Re-posting my question here:
As discussed in the last developer meeting, we will need Knora and Sipi to handle PDF really soon now. From what I understood from @lrosenth<https://github.com/lrosenth>, it doesn't involve a lot of work on Sipi...
If we validate/convert the PDF/A ourselves, when could we expect this support for non-image to be ready?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#283>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ABJX3TGXZTXFYKIXBEGIEPTP74QRPANCNFSM4GUXEHTA>.
|
I’ll be on holiday during the first two weeks of August, and will be able to work on the Knora side of this when I get back. |
Don’t forget we still need support for text files. |
With the current Sipi, the |
There is no way to store the original filename and mime type within a PDF header since PDF's are treated as "blobs" when uploading. However, knora.json now returns the internal name and internal mime type (which is the same as the original since a PDF is not modified by SIPI) as |
In the future, we will need to find a way to store these kinds of information. Just based on my gut feeling, I think that this would be the job of |
Knora already stores |
So for PDFs sipi doesn't/cannot record the original filename. What if someone want's to upload different PDFs under the same name? Shouldn't any files uploaded get a unique name? |
Knora's |
I'm trying to implement support for uploading PDF and CSV documents for our friends in Lausanne. I'd like to upload a PDF file to Sipi and store it in a temporary directory, then move it to a permanent directory. I can't use the directory
tmp
underimgroot
, because then when I try to load the file fromtmp
(using just a normal URL, not a IIIF URL), Sipi tries to redirect toinfo.json
. I guess this is because everything underimgroot
is assumed to be an image.So I guess I need another
tmp
directory underserver
. But then I have another problem: the filename hashing only works underimgroot
. Could it be made to work underserver
as well?Also, I'm wondering whether we couldn't just use the operating system's
/tmp
directory, which benefits from some optimisations (e.g. on Linux I think it can be cached in memory). We could make/tmp/sipi/images
,/tmp/sipi/server
, etc. Would this be possible?The text was updated successfully, but these errors were encountered: