File component unable to delete uploaded image
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
any update on this? i am facing the same challenge.. @travist @randallknutson
@imshivamchauhan Can you confirm this is still an issue using the latest 4x renderer? If so please provide a jsfiddle showing the issue. Thanks!
@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 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.
ok will fix this in pull today.. @jhen1422
Hello! is this bug already fix? I have the same problem with vue-formio last version. @jhen1422
@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]
Closed due to no activity. This is probably fixed. Please reopen if you still have the issue.