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]> 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]. 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. > -- -- 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.
