flashii/eeprom
Archived
3
0
Fork 1

Just use the media type provided by the uploader.

This commit is contained in:
flash 2024-12-20 03:25:33 +00:00
parent c42e78fced
commit 4129a03239

View file

@ -171,7 +171,7 @@ class UploadsRoutes implements RouteHandler {
if($uploadInfo === null) {
$uploadInfo = $uploadsData->createUpload(
$appInfo, $userInfo, $request->getRemoteAddress(),
$fileName, mime_content_type($localFile),
$fileName, (string)$file->getSuggestedMediaType(),
$fileSize, $hash, $appInfo->bumpAmount, true
);
$filePath = $this->uploadsCtx->getFileDataPath($uploadInfo);