Doubt in Jquery Filer plugin

Asked

Viewed 89 times

0

I’m trying to use this very cool upload plugin I found, Jquery Filer 1

I just can’t seem to do two things on it. See if you can help me.

1- When I click the recycle bin button in the thumbnails of the photos it removes the photo I could not find a way to fire an Ajax so I also remove the physical file.

2-How do I make so that after the image upload I can change the name of the file that appears when the mouse is positioned over the image?

Thank you

ps. If anyone knows another plugin that does something similar just talk.

  • 1 - onRemove: function(){} 2 - <div class="jFiler-item-info"><span class="jFiler-item-title"><b title="{{fi-name}}">{{fi-name | limitTo: 25}}</b></span></div>. Note {{fi-name}}, there you change the name of your file. I believe that’s right... ( https://github.com/CreativeDream/jquery.filer )

  • @Rafael Withoeft I saw this but for example what I should do within onRemove funcion, it does not pass values than this being deleted, at least not seen in the documentation. In item 2 I saw this but I couldn’t find how to upload the variable fi-name after uploading with the name of the new managed file. If you have put some simple code for me to see. Thank you very much

  • do remove I’ve been able to do an example that you can then implement. I’m seeing about the name now...

  • Nice. No waiting. Thank you very much

  • Joao, look... to remove I found a way... but on the name, I believe that has not.. :/

  • Joao, can I recommend another? I found a solution for you, it generates a name on the server side returns the new name, but does not display to the user (if you want it is possible yes), it stores it in case it needs to be deleted... it sends the name that is on the server side... well I’ll put here: http://www.dropzonejs.com/#installation How to implement what I said: http://stackoverflow.com/questions/24859005/dropzone-js-how-to-change-file-name-before-uploading-to-folder If you need a working example I have the files here already.

  • Rafael if you don’t mind give me so much code that you got from onRemove of the Filer plugin and if it’s not too much give me the code that you offered there Dropzonejs please. Thank you very much

  • Joao, I’ll see how I can upload these files and I already send them. What you use so far, you can put it like this: onRemove: function(html,arquivo){console.log(arquivo.name); //Implemente um ajax para remover do servidor.}, Dropzone: http://www.filedropper.com/dropzone

  • If you also want to, do not need to download the . rar, just open a chat call me that I pass the code of each file there.

  • Rafael looks right in parts the part of onRemove, the problem is that as my upload.php it changes the name of the file and also the folder when I give the console.log(file.name) it returns me the original name. Do you think there’s anything you can do? Thank you

  • Joao, using which? the Dropzone or the other?

  • The old one, 'cause it’s all set with him.

  • I see this Dropzonejs is really cool. Tell me something Rafael when I already have the images as I do for when I load the page I already see the registered images. I love your code, very enlightening.

  • Try to adapt as in Dropzone, they created an array, and as images were uploaded... they insert information into the array. fileList[i] = {"serverFileName" : serverFileName, "fileName" : file.name,"fileId" : i };, and to remove did so: var rmvFile = "";&#xA;for(f=0;f<fileList.length;f++){&#xA;if(fileList[f].fileName == file.name){rmvFile = fileList[f].serverFileName;}&#xA;}if (rmvFile){$.ajax({url:"delete_temp_files.php",type:"POST",data: { "fileList" :rmvFile }}).done(function(data) {console.log("retorno:" + data);});} was the adaptation of Dropzone, which can be made for your case I believe.

  • Ah you want to show everything you have in the folder also then?

  • @Rafaelwithoeft At night I need to talk to you, look me up in Skype.Don’t bother or take a look at this post of mine please. http://answall.com/questions/55279/dropzonejs-n%C3%A3o-includes-image-in-queue

  • Joao as soon as possible take a look....

Show 13 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.