-
Notifications
You must be signed in to change notification settings - Fork 18
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
Don't require Knora and Sipi to share a directory for image upload #535
Comments
webapi
and sipi
shouldn't require a shared directorywebapi
and sipi
shouldn't require a shared directory
webapi
and sipi
shouldn't require a shared directorysipi
shouldn't require a shared directory
sipi
shouldn't require a shared directory
Yes, that is correct. I did it this way because I did want not send the file to Sipi again after is has been already submitted to Knora (non GUI case). Do you think a network share would be feasible? I think it would make sense to run Sipi and Knora on different machines (performance). |
Network shares require to either share directories between two machines or to have a third machine providing the share. I don't think that they are a good way to go. It would only make the installation more complicated and fragile. Just think of the network shares that we use for our backups. We would need to make sure that the network share is accessible from The cleanest solution would be to send the file to |
that's the way Salsah 1.5 works, and I kept import scripts to behave alike because none of our installs (at Lausanne) do share a file system. |
I suggested doing this for the bulk import, but @tobiasschweizer pointed out that there's a problem: The Knora API server is supposed to store the original MIME type of the file. If the user tells If the user submitted the file to Sipi first, and then just submitted the metadata (not the file) to Therefore @lrosenth said that the bulk import XML should contain the filesystem path to each file to be imported, and that both |
Please note that are actually two ways of uploading images (GUI case and non GUI case), please see http://www.knora.org/documentation/manual/rst/sipi/sipi-and-knora.html |
I think that this is not the case anymore. |
I am running late, sorry about that, so it means that the shared directory is not required anymore? Even for the bulk import? |
If I'm not mistaken, the shared directory is still required, both for bulk import and for the 'non-GUI case' of a file upload to Knora. This is sent to Sipi's https://github.com/dhlab-basel/Knora/blob/develop/sipi/scripts/convert_from_binaries.lua#L114 |
What's left to be done here:
|
@tobiasschweizer is using the non-gui case. He would need some help in changing his import script. |
Yes, it shouldn't be too hard to change it to use API v2. Anyway, we don't need to do this until after we redo the bulk import. |
At the moment, the file upload through the
webapi
requires that there is a shared directory withsipi
. This limits the way how thewebapi
andsipi
can be deployed. Either they need to be running on the same server or both have access to the same network share.The text was updated successfully, but these errors were encountered: