Comment on Partially incorrect MIME type detection for files newly uploaded to the cloud

<- View Parent
abu@hub.alfredbuehler.ch ⁨6⁩ ⁨days⁩ ago
@Der Pepe (Hubzilla) ⁂
if ($mimetype === 'text/plain' && preg_match('/.css$/i', $os_relpath))


Sorry, but this won't work, as $os_rel_path is the hash, rather than the filename.

$os_basepath = "store/abu/",
$os_relpath = "187613e5-2220-4a71-85c1-f6bff4325a39"

original
Sort:hotnewtop