️ Modified the postImage method in the Image service to include the EXIF ​​date in the URL if available.

master
parent 261c7033a1
commit 46d830b2f7

@ -24,13 +24,19 @@ export class ImageService {
});
}
postImage(image: File): Observable<any> {
postImage(image: File, date: string): Observable<any> {
let url = `${this.apiUrl}/image/pin/null/add`;
const headers = this.authService.getAuthHeaders();
const formData = new FormData();
formData.append('image', image);
return this.http.post(`${this.apiUrl}/image/pin/null/add`, formData, { headers });
if(date !== '') {
url += `?exif_date=${date}`;
}
return this.http.post(url, formData, { headers });
}
getImageMetadata(imageId: string): Observable<any> {

Loading…
Cancel
Save