Textpattern CMS support forum

You are not logged in. Register | Login | Help

#11 2017-09-29 16:42:32

etc
Developer
Registered: 2010-11-11
Posts: 2,949
Website

Re: Integrate jquery files/images upload plugin in TXP

jpdupont wrote #307262:

Test with the last release :
Error at the end of the upload

Your screenshot looks like you are not using dropzone branch or need to refresh textpattern.js, please check.

I will not break server file size limits, sorry :-)


etc_[ query | search | pagination | date | tree | cache ]

Offline

#12 2017-10-02 15:40:31

etc
Developer
Registered: 2010-11-11
Posts: 2,949
Website

Re: Integrate jquery files/images upload plugin in TXP

etc wrote #307267:

I will not break server file size limits, sorry :-)

Couldn’t resist… the Hive neutral theme in dropzone branch now can load large files in chunks. Be careful, the upload starts immediately as files are selected.


etc_[ query | search | pagination | date | tree | cache ]

Offline

#13 2017-10-03 08:53:20

jpdupont
Member
From: Virton (BE)
Registered: 2004-10-01
Posts: 746
Website

Re: Integrate jquery files/images upload plugin in TXP

Sorry, it does not work. I have however emptied the cache of Firefox and Chrome.

Offline

#14 2017-10-03 10:13:40

etc
Developer
Registered: 2010-11-11
Posts: 2,949
Website

Re: Integrate jquery files/images upload plugin in TXP

jpdupont wrote #307274:

Sorry, it does not work. I have however emptied the cache of Firefox and Chrome.

OS issue? I have no MAMP to test, sorry. Mind providing more details? It works fine in Firefox/Chrome/IE on W7 for me, I was able to upload 100MB files (with 2MB server limit). Make sure to have chosen the latest Hive (Flat Neutral) theme.

Here is the proof :-) I have also added file size column to the table meanwhile.

Last edited by etc (2017-10-03 11:43:06)


etc_[ query | search | pagination | date | tree | cache ]

Offline

#15 2017-10-03 12:26:54

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 1,546
Website

Re: Integrate jquery files/images upload plugin in TXP

etc wrote #307276:

OS issue? I have no MAMP to test, sorry.

It did seem to work here (Safari + Firefox / macOS), with a 16MB file – on localhost.

Offline

#16 2017-10-03 12:44:35

etc
Developer
Registered: 2010-11-11
Posts: 2,949
Website

Re: Integrate jquery files/images upload plugin in TXP

It looks like it needs an absolute path to txp tmp directory — will investigate.


etc_[ query | search | pagination | date | tree | cache ]

Offline

#17 2017-10-03 14:36:14

jpdupont
Member
From: Virton (BE)
Registered: 2004-10-01
Posts: 746
Website

Re: Integrate jquery files/images upload plugin in TXP

I do not understand. I just :

  • Reinstall your dropzone version
  • Empty the cache
  • Relaunch Textpattern
    And I can not even click the file selection button.
    Looking at the source of the page, I see no link to the file dropzone.js ???

The files are on Webfaction, on an https domain. I use Chrome, last version, on Mac OS X 13.

Offline

#18 2017-10-03 15:05:17

etc
Developer
Registered: 2010-11-11
Posts: 2,949
Website

Re: Integrate jquery files/images upload plugin in TXP

You should

  • reinstall the latest dropzone branch (just updated again, sorry)
  • refresh the cache (Cmd+F5 or equivalent)
  • switch to Hive Flat Neutral admin theme, which uses blueimp fileupload (not dropzone.js). You should then see something like
<script src="https://cdnjs.cloudflare.com/ajax/libs/blueimp-file-upload/9.19.1/js/jquery.fileupload.min.js" integrity="sha256-xoEL7+UoSsbauvpImf1v+EkJclYUX+cLu3rKHjnJaOU=" crossorigin="anonymous"></script>

<script src="vendors/enyo/dropzone/txpFileupload.js"></script>

<script>
textpattern.Route.add('file', function() {
    if ($('.txp-list-container').length) {
        jQuery('.upload-form').txpFileupload({maxChunkSize: 2097152});
    }
});
</script>

in Files page source. Dropzone does not chunk large files and its clones do it in a non-standard way.

I have not tested Webfaction, can do if you send me a txp login.


etc_[ query | search | pagination | date | tree | cache ]

Offline

#19 2017-10-03 15:08:34

jpdupont
Member
From: Virton (BE)
Registered: 2004-10-01
Posts: 746
Website

Re: Integrate jquery files/images upload plugin in TXP

My fault … I had modified the hive flat files on the test domain.
Replacing them corrects some of the problems.
However, with the corrected files, I see the scrolling of the upload until the end then … nothing. The files are not in the refreshed list. Test with 3 small files and a very large.

Offline

#20 2017-10-03 15:27:42

etc
Developer
Registered: 2010-11-11
Posts: 2,949
Website

Re: Integrate jquery files/images upload plugin in TXP

jpdupont wrote #307281:

However, with the corrected files, I see the scrolling of the upload until the end then … nothing. The files are not in the refreshed list. Test with 3 small files and a very large.

Probably, a previous version has left partly downloaded file chunks. The latest one should clean them up, at least on the second attempt. If you can, check if there are any weird-named .part files left in your tmp or files directory, delete them and retry.


etc_[ query | search | pagination | date | tree | cache ]

Offline

Board footer

Powered by FluxBB