[DEV] add webp in image data
This commit is contained in:
parent
f49c0be541
commit
7b74dfa2be
@ -42,7 +42,7 @@
|
||||
<input type="file"
|
||||
(change)="onChangeCover($event.target)"
|
||||
placeholder="Select a cover file"
|
||||
accept=".png,.jpg"/>{{upload_file_value}}
|
||||
accept=".png,.jpg,.jpeg,.webp"/>{{upload_file_value}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -42,7 +42,7 @@
|
||||
<input type="file"
|
||||
(change)="onChangeCover($event.target)"
|
||||
placeholder="Select a cover file"
|
||||
accept=".png,.jpg"/>{{upload_file_value}}
|
||||
accept=".png,.jpg,.jpeg,.webp"/>{{upload_file_value}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -114,7 +114,7 @@
|
||||
<input type="file"
|
||||
(change)="onChangeCover($event.target)"
|
||||
placeholder="Select a cover file"
|
||||
accept=".png,.jpg"/>{{upload_file_value}}
|
||||
accept=".png,.jpg,.jpeg,.webp"/>{{upload_file_value}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -201,6 +201,14 @@ export class HttpWrapperService {
|
||||
//headers.append('Content-Type', "image/jpeg");
|
||||
headers['Content-Type'] = "image/jpeg";
|
||||
headers['mime-type'] = "image/jpeg";
|
||||
} else if (extention == "jpeg") {
|
||||
//headers.append('Content-Type', "image/jpeg");
|
||||
headers['Content-Type'] = "image/jpeg";
|
||||
headers['mime-type'] = "image/jpeg";
|
||||
} else if (extention == "webp") {
|
||||
//headers.append('Content-Type', "image/webp");
|
||||
headers['Content-Type'] = "image/webp";
|
||||
headers['mime-type'] = "image/webp";
|
||||
} else if (extention == "png") {
|
||||
//headers.append('Content-Type', "image/png");
|
||||
headers['Content-Type'] = "image/png";
|
||||
|
Loading…
Reference in New Issue
Block a user