Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing width and height in the upload return object #2150

Open
imverayz opened this issue May 6, 2022 · 0 comments
Open

Missing width and height in the upload return object #2150

imverayz opened this issue May 6, 2022 · 0 comments

Comments

@imverayz
Copy link

imverayz commented 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 });
		});
@imverayz imverayz changed the title Missing width and height in the return object Missing width and height in the upload return object May 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant