Giter Club home page Giter Club logo

Comments (3)

eromano avatar eromano commented on August 21, 2024

Due a problem in the RestApi the thumbnail could be not generated during the upload:

https://github.com/Alfresco/community-edition/blob/master/projects/remote-api/source/java/org/alfresco/rest/api/impl/NodesImpl.java#L2610

When this problem occurs , the thumbnails have to be asked with the parameter c=queue in order to be regenerated.Something like :

http://127.0.0.1:8080/share/proxy/alfresco/api/node/workspace/SpacesStore/ac1c98aa-67de-417f-af81-5ada42e16d60/content/thumbnails/doclib?c=queue&ph=true&lastModified=doclib:1471021625609

More details can be found also in this discussion in the forum:

https://forums.alfresco.com/forum/developer-discussions/repository-services/how-generate-thumbnail-use-alfresco-05162013-0415

With this parameter probably the thumbnails are regenerated every time ( this is the approach used in Share ).

https://github.com/Alfresco/community-edition/blob/master/projects/remote-api/source/java/org/alfresco/repo/web/scripts/quickshare/QuickShareThumbnailContentGet.java#L115

Despite the fact that this approach regenerate the thumbnail you need to reload it at least once in order to display it.

from alfresco-js-api.

eromano avatar eromano commented on August 21, 2024

Maybe we can add inside the alfrescoContent api a system that call the renditions api:

POST /nodes/{nodeId}/renditions

when one of thumbnail link return 404 in order to ask to regenerate it

from alfresco-js-api.

eromano avatar eromano commented on August 21, 2024

From the conversation with @ohej we can:

For multipart/form-data upload you can use the renditions field to create renditions (e.g. doclib) asynchronously upon upload. Note that currently only one rendition can be requested. Also, as requesting rendition is a background process, any rendition failure (e.g. No transformer is currently available) will not fail the whole upload and has the potential to silently fail.

the parameter is parsed here

https://github.com/Alfresco/community-edition/blob/master/projects/remote-api/source/java/org/alfresco/rest/api/impl/NodesImpl.java#L2524

from alfresco-js-api.

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.