ravuth Posted August 12, 2012 Share Posted August 12, 2012 NOTE: This is a split off discussion following a discussion that involved BACKSTEPPING to an earlier version of jQuery to solve problems with 5.1.3. If you have already upgraded to 5.1.3, that backstep will have to be implemented before using the solution offered in this thread, at least until the issue with v5.1.3 is resolved. @Bsmither , could you mind to let me know is any possible way to upload more than 4 images at each time ? Quote Link to comment Share on other sites More sharing options...
bsmither Posted August 12, 2012 Share Posted August 12, 2012 Sure, but I don't know if this will really work. In the file /js/admin.js, at around line 226, find: /* MultiFile Upload */ $('input:file.multiple').MultiFile({ max: 4, namePattern: '$name$i', remove: '<img src="images/icons/bin.png" alt="x" />' }); Change max to 10 or 20. I would not leave it blank. There are limits in place elsewhere... PHP has a file upload limit, your hosting provider probably has a limit of some kind set in the server operating system, there is probably a limit or timeout based on how fast your Internet upload speed is, etc. NOTE: The MultiFile Upload plugin for jQuery is NOT an uploader. This plugin simply provides the means for creating another form element for uploading files when the current one on display is used. (You use the Browse button and field, then javascript will position it out of sight and cause to display another one.) Also, the plugin provides a means to list the files in the queue and to delete any file from the queue. The files are uploaded using very standard HTML form element POST methods. The reason I say I am not sure it will work is that in the code above, there is an indication that an image is used to show the Remove link. Instead, CC5 shows a simple text letter 'x'. So why isn't the image used? Quote Link to comment Share on other sites More sharing options...
ravuth Posted August 13, 2012 Author Share Posted August 13, 2012 @bsmither , i change max: 4 , to max: 7 but still don't work , any more idea ? Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted August 13, 2012 Share Posted August 13, 2012 Not that it has anything to do with this, but there is no images/icons/bin.png. The file is missing in 5.1.1 and 5.1.3. Quote Link to comment Share on other sites More sharing options...
bsmither Posted August 13, 2012 Share Posted August 13, 2012 Do you have a way (and know how to do it) to see the actual javascript that was download to your browser? This would involve either Firebug or HTTPFox for Firefox browsers. Maybe Chrome, Opera, IE, and the others have some diagnostics tools but I don't know what they are. If the code does come in, then obviously it is not getting used. The default for the MultiFile Upload plugin is -1 (probably means unlimited). So, I don't know why this javascript I mentioned above isn't working for you. Quote Link to comment Share on other sites More sharing options...
ravuth Posted August 13, 2012 Author Share Posted August 13, 2012 as your guidance i use Firebug for firefox , and found that max: 4 , still unchanged, whereas actually i already change to max: 7 in js/admin.js Quote Link to comment Share on other sites More sharing options...
bsmither Posted August 13, 2012 Share Posted August 13, 2012 Ok, did Firebug say that plugins.php was actually downloaded, or fetched from the cache? Quote Link to comment Share on other sites More sharing options...
ravuth Posted August 13, 2012 Author Share Posted August 13, 2012 bsmither , it works now .. after i read your reply and clear all caches and firefox(history ,cookies ). now it works.. i could say it is resolved right now.. Thanks bsmither for always offers fast and right reply , and also thanks all Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.