I was searching a lot and found many questions regarding this problem, unfortunately none of answers did help me.
I\'m trying to upload a png image, and I\'m receivi
Actually, in my case, I created a blob object from a canvas by void canvas.toBlob(callback, mimeType, qualityArgument) method So the blob file does NOT have its real name (which has an extension), it's just only 'blob'. So I have to use the legacy way to upload the file, instead of an 'upload' library:
move_uploaded_file ( $file["tmp_name"], $target_file )