Missing width and height in the upload return object

Author: imverayzCreated May 6, 2022Updated May 6, 2022

Hi! We are using this ng-file-upload module to upload image files. I think we are expecting image width and height data in the data object returned, but are not seeing them. Any insight would be appreciated!

Here is the relevant code:

const uploader = Upload.upload({
			url: `${imageServerURL}/upload/${uuid ? uuid : ''}`,
			withCredentials: false,
			headers: { session },
			data: {
				metadata: metadata ? JSON.stringify(metadata) : undefined,
				file,
			}
		}).success((data, status, headers, config) => {
			resolve({ data, status, headers, config });
		}).error((data, status, headers, config) => {
			reject({ data, status, headers, config });
		});

Source: danialfarid/ng-file-upload