Ajax file upload to tmp dir. Add cached_attachment to document. Recover image from cache. Add progress bar.

This commit is contained in:
Senén Rodero Rodríguez
2017-08-01 00:48:24 +02:00
parent 9a0b34fffe
commit e327b420ff
7 changed files with 64 additions and 66 deletions

View File

@@ -28,8 +28,7 @@ App.Forms =
i = 0
while i < element.length
element[i].addEventListener 'change', ->
idButton = $(this)
idButton.closest('.file-name').find('p').text(@files[0].name)
$(element).parent().find('.file-name').text(@files[0].name)
return
i++