Skip to content

Commit fb4d43a

Browse files
committed
v1.3.1
- Fixed error when upload file after store rotated image
1 parent 4b97998 commit fb4d43a

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ For full functionality "Maximum avatar file size" in "ACP" > "Board configuratio
5454

5555
## Changelog
5656

57+
### v1.3.1 (15-10-2023)
58+
- Fixed error when upload file after store rotated image
59+
5760
### v1.3.0 (13-10-2023)
5861
- Added manual image rotation
5962

imcger/imgupload/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ For full functionality "Maximum avatar file size" in "ACP" > "Board configuratio
5454

5555
## Changelog
5656

57+
### v1.3.1 (15-10-2023)
58+
- Fixed error when upload file after store rotated image
59+
5760
### v1.3.0 (13-10-2023)
5861
- Added manual image rotation
5962

imcger/imgupload/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"type": "phpbb-extension",
44
"description": "Using ImageMagick php librarie for resize image attachments and creating thumbnails.",
55
"homepage": "https://github.com/IMC-GER/phpBB-Image-upload-use-ImageMagick/tags",
6-
"version": "1.3.0",
7-
"time": "2023-10-13",
6+
"version": "1.3.1",
7+
"time": "2023-10-15",
88
"license": "GPL-2.0-only",
99
"authors": [
1010
{

imcger/imgupload/styles/all/template/event/overall_footer_body_after.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@
5959
phpbb.plupload.data.sort(function(a,b) {
6060
return parseInt(b.attach_id) - parseInt(a.attach_id);
6161
});
62+
63+
phpbb.plupload.clearParams();
64+
phpbb.plupload.updateMultipartParams(phpbb.plupload.getSerializedData());
6265
}
6366

6467
/**
@@ -249,7 +252,6 @@
249252
// When form send, update attachment row id in message text
250253
document.getElementById('postform').addEventListener('submit', function(e) {
251254
imcgerIuplUpdateMessageBeforeSend(document.getElementById('postform').getAttribute('action').includes('#preview'));
252-
253255
});
254256

255257
/**
@@ -380,7 +382,7 @@
380382
if (isImage) {
381383
let getThumbnail = '&t=1';
382384
{% if (IUL_IMG_SET_INLINE && S_BBCODE_ALLOWED && S_BBCODE_IMG) ? 1 : 0 %}
383-
link.html('<img id="img-' + attach_id + '" src="' + imgUrl + getThumbnail + '" onerror="this.src=\'' + imgUrl + '\'; $(\'[data-attach-id=' + attach_id + ']\').find(\'.button2.file-inline-bbcode\').hide();" title="' + real_filename + '; " alt="' + real_filename + '">');
385+
link.html('<img id="img-' + attach_id + '" src="' + imgUrl + getThumbnail + '" onerror="this.src=\'' + imgUrl + '\'; $(\'[data-attach-id=' + attach_id + ']\').find(\'.button2.file-inline-bbcode\').hide();" title="' + real_filename + '" alt="' + real_filename + '">');
384386
{% else %}
385387
link.html('<img id="img-' + attach_id + '" src="' + imgUrl + getThumbnail + '" onerror="this.src=\'' + imgUrl + '\';" title="' + real_filename + '; " alt="' + real_filename + '">');
386388
{% endif %}

0 commit comments

Comments
 (0)