Hi Alexei, The issue is both that the page doesn't redirect and that the actual media is not deleted from S3. The resource is deleted from Arches but the media file is still in my S3 bucket. Ideally both of these would happen, although we could probably get by with just the page redirect (which would at least be a confirmation that the resource has been deleted). Thanks.
Andy On Wednesday, October 21, 2015 at 1:54:46 PM UTC-7, Alexei Peters wrote: > > Hi Andy, > Is the error that you're experiencing the fact that the page doesn't > redirect back to the home page? The url parameter should be blank as this > will just post the DELETE verb back to the current url of the page, which > it should do. > It sound's like the success function isn't getting fired and so the page > isn't refreshing (but the resource is being deleted as you noted). > Is that it? > -Alexei > > > Director of Web Development - Farallon Geographics, Inc. - 971.227.3173 > > On Wed, Oct 21, 2015 at 1:38 PM, Andy Graham <[email protected] > <javascript:>> wrote: > >> Hello All, >> A question about an error I am getting trying to delete Media resources >> on S3. When I delete the resource via the Resource Manager (Delete >> Resource in the left side tool bar) I get the message that states "You >> won't be able to undo this operation!", then I click on the Delete button >> and nothing happens, however, if I go back to the Map or Search the >> resource has been deleted. >> >> Using the developer tools for the browser I have traced the error back to >> the delete-resource.js in the arches/app/media/js/views/forms folder. >> >> Specifically: >> >> deleteResource: function() { >> $.ajax({ >> method: 'DELETE', >> url: '', >> success: function() { >> location.href = arches.urls.home; >> } >> }); >> >> The error seems to be taking place at the url:, which isn't populated. >> Does anyone have suggestions for the proper way to reference the S3 bucket >> here, and if there are any specific permissions that need to be set to >> allow deleting files from S3? Any help is appreciated, thanks. >> >> Andy >> >> -- >> -- To post, send email to [email protected] <javascript:>. To >> unsubscribe, send email to [email protected] <javascript:>. >> For more information, visit >> https://groups.google.com/d/forum/archesproject?hl=en >> --- >> You received this message because you are subscribed to the Google Groups >> "Arches Project" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- -- To post, send email to [email protected]. To unsubscribe, send email to [email protected]. For more information, visit https://groups.google.com/d/forum/archesproject?hl=en --- You received this message because you are subscribed to the Google Groups "Arches Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
