angular icon indicating copy to clipboard operation
angular copied to clipboard

File component unable to delete uploaded image

Open rbouwmeister opened this issue 8 years ago • 8 comments

I'm using the Filecomponent and have the following option for the file component: storage: "url", url: "api/storage/",

Uploading an image works fine. Trying to delete the image results in an error: TypeError: Cannot read property 'makeRequest' of undefined

The error is caused by this line in File.js: _this4.options.formio.makeRequest('', fileInfo.url, 'delete'); The formio is undefined.

I can't set the formio object in options.

I'm using angular-formio version 2.0.0-alpha.7

rbouwmeister avatar May 18 '18 06:05 rbouwmeister

any update on this? i am facing the same challenge.. @travist @randallknutson

imshivamchauhan avatar Dec 03 '19 07:12 imshivamchauhan

@imshivamchauhan Can you confirm this is still an issue using the latest 4x renderer? If so please provide a jsfiddle showing the issue. Thanks!

jeriah-formio avatar Dec 03 '19 14:12 jeriah-formio

@jhen1422 yes, this issue exists currently, it was working fine when i last used it (on version-4.0.8) after that i upgraded to ^4.3.2, not sure till which version it worked correctly, because i upgrated from 4.0.8 to ^4.3.2. But currently its not working.

imshivamchauhan avatar Dec 03 '19 14:12 imshivamchauhan

@imshivamchauhan Thank you for confirming. I've added this issue to our 4x backlog. Please note, we welcome pull requests in this library. If you need this item expedited, please feel free to contact [email protected] for pricing.

jeriah-formio avatar Dec 03 '19 14:12 jeriah-formio

ok will fix this in pull today.. @jhen1422

imshivamchauhan avatar Dec 04 '19 05:12 imshivamchauhan

Hello! is this bug already fix? I have the same problem with vue-formio last version. @jhen1422

luxor988 avatar Jan 23 '20 18:01 luxor988

@luxor988 it is still in our backlog and is not an internal priority. If someone needs this, they can sponsor to expedite resolution. If you are interested in that, please reach out to [email protected]

travist avatar Feb 03 '20 15:02 travist

Closed due to no activity. This is probably fixed. Please reopen if you still have the issue.

roma-formio avatar Aug 31 '23 13:08 roma-formio