Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#13 2017-10-03 08:53:20
- jpdupont
- Member
- Registered: 2004-10-01
- Posts: 752
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
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)
Offline
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.
Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
Offline
Re: Integrate jquery files/images upload plugin in TXP
It looks like it needs an absolute path to txp tmp directory — will investigate.
Offline
#17 2017-10-03 14:36:14
- jpdupont
- Member
- Registered: 2004-10-01
- Posts: 752
Re: Integrate jquery files/images upload plugin in TXP
- 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
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.
Offline
#19 2017-10-03 15:08:34
- jpdupont
- Member
- Registered: 2004-10-01
- Posts: 752
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
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.
Offline
#21 2017-10-03 15:29:44
- jpdupont
- Member
- Registered: 2004-10-01
- Posts: 752
Re: Integrate jquery files/images upload plugin in TXP
Ok, but impossible to retry today …
Offline
Re: Integrate jquery files/images upload plugin in TXP
2 notes (with the latest code from the branch)
- I like the blueimp file upload UI much better…
- one issue: after uploading, thing seems to get the file title quite wrong, see screen grab below (compare title to file name), result of 3 different uploads, in between upload 2 and 3, went to some other panel.
Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
Offline
Re: Integrate jquery files/images upload plugin in TXP
phiw13 wrote #307284:
2 notes (with the latest code from the branch)
I like the blueimp file upload UI much better…
Actually, it’s just a mockup I’ve made for testing :-) Blueimp is used here for chunking large files without any UI.
one issue: after uploading, thing seems to get the file title quite wrong, see screen grab below (compare title to file name), result of 3 different uploads, in between upload 2 and 3, went to some other panel.
Interesting! Either my assumption on files array indexed identically both client and server side is wrong (which would be a problem), or the issue concerns only large (chunked) files. Will investigate.
Thanks for testing!
Offline
Re: Integrate jquery files/images upload plugin in TXP
etc wrote #307286:
Actually, it’s just a mockup I’ve made for testing :-) Blueimp is used here for chunking large files without any UI.
Yes, I understood that. But I checked the Blueimp docs which I didn’t know about -:). (here – I like that “basic plus“ UI, simplicity!).
Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
Offline