attachment-lite icon indicating copy to clipboard operation
attachment-lite copied to clipboard

`computeUrl` function not working without `preComputeUrl` config set

Open aa-ndrej opened this issue 2 years ago • 6 comments

The README states that I can use the computeUrl function to compute URL on demand. This does not work however because the function only computes the URL when the preComputeUrl config is set.

Package version

v1.0.7

Node.js and npm version

Node.js: v18.15.0 npm: v9.5.0

Sample Code (to reproduce the issue)

DO NOT set the preComputeUrl property on the decorator config and use the computeUrl function. The URL is not set on the attachment.

aa-ndrej avatar Apr 20 '23 15:04 aa-ndrej

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 12 '23 10:08 stale[bot]

I am not using adonisjs and anymore, but this should still be a current issue with the library.

aa-ndrej avatar Aug 13 '23 10:08 aa-ndrej

I just came across this problem too and found this issue.

filipebraida avatar Jan 05 '24 15:01 filipebraida

+1 issue persists

p3drosola avatar Feb 09 '24 15:02 p3drosola

Please provide a reproduction repo that I can use to reproduce the issue :)

thetutlage avatar Feb 10 '24 02:02 thetutlage

Please provide a reproduction repo that I can use to reproduce the issue :)

@thetutlage I made a very basic demonstration using the same examples from the README. https://github.com/filipebraida/attachment-lite-problem

filipebraida avatar Feb 10 '24 18:02 filipebraida