Bug Photo can't be uploaded if client side EXIF processing fails unexpectedly

There is a bug in this version
K

Kirby

Guest
The attached image can't be uploaded on XenForo 2.3.7 (but works fine on 2.3.6 and lower).

This seems to be related to an exception thrown in client side EXIF processing:
Code:

Code:
case 'GPSTimeStamp':
    value = data.value.map((v) => v.join('/'))
    break

This assumes that v is an array, if it is not it throws an exception.

This exception is caught but silently ignored and the upload is aborted:
Code:

Code:
try
{
    const result = await this.preProcessFile(file)
    if (result === false)...

Read more

Continue reading...