Comments (8)
Hi aleks365 ,
got it.
This project has been created for a similar reasons - OCR processing of images, text extraction and text analysis for search.
I used "shaddow" files in nextcould (starting with ".") to track the processing state and store the results for the file.
Actually a cool feature of nextcloud.
Using a tag to "send" the files TensorFlow is a good idea.
Thanks for sharing your thougths.
hobigo
from nextcloud-node-client.
Request:
fetch("....../remote.php/dav/files/<userid>/", {
"headers": {
"accept": "*/*",
"content-type": "text/plain;charset=UTF-8",
},
"body": "<oc:filter-files xmlns:d=\"DAV:\" xmlns:oc=\"http://owncloud.org/ns\" xmlns:nc=\"http://nextcloud.org/ns\" xmlns:ocs=\"http://open-collaboration-services.org/ns\">\n <d:prop>\n <d:getlastmodified />\n <d:getetag />\n <d:getcontenttype />\n <d:resourcetype />\n <oc:fileid />\n <oc:permissions />\n <oc:size />\n <d:getcontentlength />\n <nc:has-preview />\n <nc:mount-type />\n <nc:is-encrypted />\n <ocs:share-permissions />\n <oc:tags />\n <oc:favorite />\n <oc:comments-unread />\n <oc:owner-id />\n <oc:owner-display-name />\n <oc:share-types />\n </d:prop>\n <oc:filter-rules>\n <oc:systemtag>290</oc:systemtag>\n </oc:filter-rules>\n</oc:filter-files>\n",
"method": "REPORT",
});
AND
<oc:filter-rules>
<oc:systemtag>290</oc:systemtag>
<oc:systemtag>289</oc:systemtag>
</oc:filter-rules>
from nextcloud-node-client.
Response is a mutistatus 207 for files:
open
limit and count
from nextcloud-node-client.
Hi aleks365,
I'll put it on my list for the next release.
It is possible to do it.
I don't know how fast it is.
limiting and paging is currently not clear
from nextcloud-node-client.
open pull request for paging and limiting on nextcloud server side.
nextcloud/server#10880
I would consider the non ability to limit the response as a security bug...
from nextcloud-node-client.
Hobigo, thank you for your interest.
...
I'll put it on my list for the next release.
It is possible to do it.
I don't know how fast it is.
limiting and paging is currently not clear
I would consider the non ability to limit the response as a security bug...
sure, I'm waiting for the next release
from nextcloud-node-client.
Hi aleks365,
v1.4.0 contains the function - client.getFileSystemObjectByTags
Please find an example how to use it here:
https://github.com/hobigo/nextcloud-node-client#examples
Tagging
would be intersting to know what you are doing with this function
regards hobigo
from nextcloud-node-client.
Hobigo, thank you for the quick release
I use this for file storage and image classification
// A simplified version
const tag = await client.getTagById(5);
const fse = await client.getFileSystemElementByTags([tag]);
const file = fse[0];
// I am sending binary data to the TensorFlow service
const url = file.getUrl();
// axios...
// Deleting file from queue
await file.removeTag('queue');
I download files from the queue and then pass binary data to the TensorFlow service. In this way, the TensorFlow service adds more tags.
The code on production looks different but I simplified it for the needs of the example.
If you would like to know something more, let me know
from nextcloud-node-client.
Related Issues (20)
- Issue in deleting folder/file immediately after its creation. HOT 2
- feature
- Getting TypeError: Client is not a constructor HOT 2
- Please document how to set up & build the project
- Support for UserGroup shares
- file search
- uploadFolderCommand endless loop if folder does not exits
- getSubfolders returns original folder if folder name contains blanks
- getFolder() always return null
- publicUpload does not work HOT 5
- node-fetch types are not exported in fakeServer and http clienent
- Copy Folders with content HOT 3
- client.getQuota() does not return the correct quota
- Is it possible to upload a file on disk to nextcloud?
- Get share information HOT 1
- Javascript examples HOT 4
- Is there any plan to re-open this?
- Incorrect/missing URL encoding HOT 1
- getPercentCompleted returns only 0 and 100
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 nextcloud-node-client.