Coder Social home page Coder Social logo

Comments (8)

hobigo avatar hobigo commented on July 17, 2024 1

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.

hobigo avatar hobigo commented on July 17, 2024

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.

hobigo avatar hobigo commented on July 17, 2024

Response is a mutistatus 207 for files:
open
limit and count

from nextcloud-node-client.

hobigo avatar hobigo commented on July 17, 2024

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.

hobigo avatar hobigo commented on July 17, 2024

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.

aleks365 avatar aleks365 commented on July 17, 2024

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.

hobigo avatar hobigo commented on July 17, 2024

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.

aleks365 avatar aleks365 commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.