What I would like to do is to be able to add a double diagonal every time there is a simple diagonal within my url that I get since my original purpose is to save the address of an image in my database but it only saves one point And not all the direction and my point of view is due to the simple diagonal, although I'm not sure.
.js code that initialize the storage of the image and get the address of that route.
guardarImagenP();
var logo = $("#txtLogoP").text();
Code to save image:
/* Función para gurdar archivos */
function guardarImagenP() {
$("#updLogoP").uploadify({
'swf': '../../../js/system/uploadify/uploadify.swf',
'uploader': 'subirImagen.ashx',
'cancelImg': '../../../js/system/uploadify/cancel.png', /// "../../system/uploadify/uploadify.swf"
'folder': 'bom',
'auto': true,
'multi': false,
'queueSizeLimit': 1,
'uploadLimit': 1000,
'fileTypeDesc': 'Archivos jpg', //<-- This can be whatever you want
'fileTypeExt': '*.jpeg',
'buttonText': "Seleccionar",
'onUploadSuccess': function (file, XMLHttpRequest) {
var ruta = XMLHttpRequest;
if (XMLHttpRequest != -1) {
$("#txtLogoP").text(ruta);
$("#imgLogoP").attr("src", ruta);
} else {
alert(XMLHttpRequest)
}
}
});
}