3,462
questions
0
votes
0
answers
23
views
MIME Errors - AWS CloudFront and S3
I'm the SRE at my company and working with the QA team who is using CodeDeploy to deploy code into an s3 bucket and then CloudFront distributes that code. We are getting MIME error codeerror ...
0
votes
0
answers
22
views
Send multiple files via HTTP from server to server
I'm looking to send some files over HTTP from one server to another, and am wondering what the best MIME type and method to do so is. Currently I have a RESTful HTTP server and have an endpoint which ...
0
votes
1
answer
106
views
How to fix Module was blocked because of a disallowed MIME type (“application/octet-stream”)?
I'm trying to deploy a website I made (React app created with Vite, Typescript) using Netlify CLI but after it deploys and I check the URL the app doesn't load and it just says Module from '...main....
-1
votes
0
answers
19
views
RClone metadata filter on mimetype not working
I'm trying to use Rclone to recursively compare two remote directories and I would like to use a metadata filter to only compare pdf or txt files. But even with a single mimetype filter I can't make ...
1
vote
0
answers
35
views
Stylesheet properties not reflecting on the webpage due to MIME type
I am working on a project that runs a web server on a specified port written in Golang. The styling properies of the page don't reflect and the following error is logged on the browser console.
...
0
votes
0
answers
51
views
trying to upload a dxf file into a laravel 11x project with validations, but it only work when it has no validation on it? help please
Created a upload project in laravel 11x. Im trying to upload a dxf file and add validations to only accept that file but it only passes when there is no validations on it.
I tried different mime types ...
0
votes
0
answers
35
views
How to use the Python filemagic library to check the MIME type of a file for a file that is not in the same directory?
So, I am building a flask application where I currently need to check the MIME type of file to restrict the type of files to be uploaded (not being limited to the extension of the files).
The folder ...
1
vote
1
answer
52
views
Cannot upload WMA files in WordPress plugin
I try to upload a .wma file in WordPress plugin, but get the error "This file type is not allowed"
But I have already added the support to .wma file type as below:
// Add this filter to ...
0
votes
0
answers
49
views
ASP.NET Core / C# code to test HTTP reponse MIME types for code or HTML
I can't find an ASP.NET Core / C# function or code example to test if a HTTP response is programmatic.
In ASP.NET Core 8.0 using C#, I am determining if a web response is html or javascript with
if (...
0
votes
1
answer
70
views
How to fix "Media file scrutiny for the file failed with mediaEngineStatus: 0" in the Whatsapp API
I am trying to send an audio message using the Whatsapp Cloud-api, but I am now dealing with a problem that seems to have no documentation available.
Overview of the issue
I send an audio file (mp3) ...
1
vote
1
answer
66
views
Adding MIME type via functions.php not working (although it works via plugin)
So far I have been using a plugin to add the .csl mime type to my WordPress website. But I've been learning more about child themes and since I already have that, why not get rid of a plugin that does ...
0
votes
1
answer
27
views
Register android intent filter to only accept files
I have an app that you can share files to
I want it to show up whenever you share files.
I tried the following
<intent-filter>
<action android:name="android.intent.action.SEND"/...
2
votes
2
answers
58
views
How do I combine MimeTypeFilters and NameFilters for a QFileDialog using PyQt6 or PyQt5?
Using PyQt6, I am investigating using QFileDialog directly without the use of one of the static functions (i.e. don't use QFileDialog.getOpenFileName). The issue that I am running into is creating a ...
0
votes
0
answers
20
views
Not able get email threads for CC and BCC addresses using Microsoft graph api: forward api
I am using microsoft graph api's foward api to fowrad mail with CC and BCC, as I can't add CC and BCC address directly when we use fowrad api, I have created MIME format and added it over headers.
Now ...
0
votes
2
answers
80
views
How can I manually create an UploadFile in FastAPI?
Background
I am trying to write tests for my FastAPI application. I have an object, ImageRecord, which uploads an image to S3. Here's the method signature:
async def upload_image(file: UploadFile, ...
1
vote
1
answer
45
views
What is the difference between `request.form` and `request.get_json()`?
Situation description:
@app.route('/auth/audio/save', methods=['POST'])
def save_audio():
# files = request.files
resp_dict = {'message': "success"}
file = request.files.get(&...
0
votes
1
answer
26
views
Safe (HTTP Methods): POST with certain MIME types?
From MDN (Archive):
for HTTP request methods that can cause side-effects on server data (in particular, HTTP methods other than GET, or POST with certain MIME types), the specification mandates that ...
0
votes
1
answer
54
views
Mime type spoofing detection
I am working on a content type spoof detector for a web application. My issue can be answered by any developer with experience on this subject.
My input is a object, which expose its filename, ...
0
votes
0
answers
159
views
Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html" react vite
I am deploying my react app in AWS S3 bucket.
Everything works fine locally but each time a new build is deployed, then i get the error as :
Failed to load module script: Expected a JavaScript module ...
2
votes
0
answers
24
views
Why documents with different mimetypes are output normally
I have two printers.
1. Eson L6290
- "application/octet-stream"
- "image/pwg-raster"
- "image/urf"
- "image/jpeg"
- "application/vnd.epson.escpr"
3....
0
votes
0
answers
108
views
MP4 file created using MediaRecorder API is not playable
I am trying to generate an mp4 file from a screen recording done via a chrome extension. The video plays back perfectly on the browser, but when I download the file and play it back locally with a ...
0
votes
0
answers
14
views
Which mime type to start android GET_CONTENT to open apks files?
I want users to pick up an apks file to install.
I made an ActivityResultLauncher instance and passed application/apks to the launch() method like this.
mGetContent.launch("application/apks")...
0
votes
0
answers
37
views
MIME type errors while importing SimpleLightbox inside module type script
I use Vite bundler. I have a script that imports SimpleLightbox (installed with 'npm i simplelightbox') and its CSS, and at this point I get an invalid MIME type error. When I run the server through '...
0
votes
0
answers
25
views
Construct a Blob without MIME Type?
I use a nodejs public API that allow me to send some attachments in a chat. This public API ask me a Buffer and construct a Blob from my provided buffer, just like that :
body.append('attachments', ...
1
vote
0
answers
44
views
Why can KDevelop syntax-highlighting show codes without suffix?
I'm using KDevelop-5.10 that comes with KDE Plasma-5.27.
I found that KDevelop can show codes syntax highlighting, even through without suffix(*.hpp, *.h), as long as the codes are system headers. e.g:...
0
votes
1
answer
167
views
"Loading module was blocked becasue of a disallowed MIME type (“text/html”)" on GitHub Pages with Custom Domain
I am new to creating webapps using React + Vite and TypeScript. Recently I have finished my first app and was hoping to deploy it on GitHub pages using a custom domain name. I deployed it using npm ...
4
votes
1
answer
64
views
Golang Make MIMETYPE File First File in Zip
I am working on making some modifications to an epub and then rezipping it. I am currently doing this in Golang. The crux of the logic is housed in this repo here. However most of the issue resides in ...
0
votes
1
answer
104
views
I try to print it after using cups pdftoraster, but a format error occurs
I created a pdf file into a raster file using pdftoraster.cxx of cupsfilter.
This is my printer Epson L6290. Below are the supported mimetypes.
"application/octet-stream"
"image/pwg-...
1
vote
0
answers
122
views
npm run build for vite project not working Error: Refused to apply style because its MIME type ('text/html') is not a supported stylesheet MIME type
After building the vite project using npm run build,
the compiled/built html code does not contain correct path.
However the same project when run through npm run dev runs perfectly and the issue ...
-1
votes
1
answer
93
views
How to change a Javascript MIME type from text/html to application/js in Create React App (react-unity-webgl)?
I am trying to load a Unity Webgl build in my react component using react-unity-webgl. However, the MIME type of the loader.js file is text/html when I open the networks panel. Therefore, the loader....
1
vote
2
answers
241
views
CSS MIME type error when serving site from S3 via CloudFront
When visiting my website customtimers.net I get the following error:
Refused to apply style from 'https://customtimers.net/styles.css' because its MIME type
('application/xml') is not a supported ...
0
votes
0
answers
16
views
How I create a file to only my app can open it with VIEW intent?
So, my app is something like editor to specific data, which used in only my app(for now) and i want to have SEND and VIEW intent in app.
I tried to use a json files but with custom extensions, but in ...
2
votes
1
answer
223
views
Audio sent with the MIME type audio/mpeg, but processed as octect - API WhatsApp
I'm capturing audio via the web using the JavaScript MediaRecorder API. I then send this media to a Go server, which then sends it to WhatsApp.
Form in Go:
vFile,_= os.Open(this.URL)
vBuffer := new(...
1
vote
1
answer
58
views
Weird bug when trying to determine if a file is an image or video
I'm developing a Flutter app where I need to differentiate between image and video files. However, I've run into a peculiar issue: my client has this video file saved from WhatsApp, and when picking ...
0
votes
0
answers
69
views
How can i fix a strict MIME type checking issue related to PDF rendering using PDFJS, nodejs and Firebase Hosting/Storage?
I'm trying to render PDFs stored in Firebase Storage on my website hosted on Firebase Hosting. I'm using webpack to bundle my main files (not the module's one) and NodeJS.
When i run the website with ...
-1
votes
1
answer
52
views
How to restrict content-types on direct upload from browser to S3 secured via pre-signed URL?
I am trying to generate an uplaod presigned url where frontend is required to send the content type of file.
I see that if fronend doesnt send this content type and i remove content type in params ...
0
votes
0
answers
31
views
Differentiating between JWE and JWS when requesting resource
JWE and JWS both have the mime-types application/jose and application-jose+json assigned to them (see: https://datatracker.ietf.org/doc/html/rfc7515#section-9 and https://datatracker.ietf.org/doc/html/...
0
votes
0
answers
53
views
How to ensure the type of a file uploaded to s3 using presigned post and posted as a form data?
I am implementing an endpoint in an API that let's the user create a presigned url to post content into our s3 bucket.
I want to add a condition or anything similar to restrict the type of the file ...
1
vote
1
answer
659
views
Does having `content-type: application/octet-stream` necessarily means that we should set request body as a binary form?
I have this sample request with cUrl in the contract (the contract docs only show this for the endpoints):
curl \
-X PUT \
-H 'Content-Type: application/octet-stream' \
-H 'Content-...
0
votes
0
answers
14
views
How do I make Links (text browser) default to using Transmission-Cli for torrent files or magnets?
When I open a torrent link or magnet through Links it tells me I havent specified an associated app or software to handle them.
Ive been through the documentation for Links, I've found the part for ...
0
votes
0
answers
71
views
Strange MIME type (application/x-dbf) for a P7M
I'm working in analyzing a bunch of P7M files using Python and when parsing them i get into some with strange MIME type = application/x-dbf. I saw that this mime type is used for some vectoring and db ...
0
votes
0
answers
32
views
MIM error with cpanel when uploading a vue.js app
guys i trying to host my vue.js project on cpanel and when i upload the dist and open it on my browser it shows that (Failed to load module script: Expected a JavaScript module script but the server ...
0
votes
0
answers
41
views
Invalid mime type \"rss+xml\": does not contain '/'
I am making a rest API call using rest template and where content type is application/json but the server return the response in rss+xml format
resTemplate.getMessageConverters().add(0,new ...
1
vote
0
answers
326
views
I am trying to use pdfjs viewer ver. pdfjs-4.0.379-dist and while running it on XAMPP server i get this error:
Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "". Strict MIME type checking is enforced for module scripts per HTML spec.
I ...
0
votes
0
answers
26
views
Fb2 UploadedFile mimetype on different OSes not the same
I write file uploading mechanism. In my case I upload books. All other extensions (and mimetypes) are uploaded good (pdf, djvu, zip, epub, doc, rtf) both on Ubuntu 22 and Windows 11, but fb2 have a ...
1
vote
1
answer
227
views
ActionDispatch::Http::MimeNegotiation::InvalidType ("html" is not a valid MIME type):
I am upgrading my rails app from ruby 2.4 to ruby 3.2.2 and from rails 5 to rails 7.0.4.3. After upgrading a bunch of gems and getting the app up and running, I started getting the above error. The ...
0
votes
0
answers
78
views
Is it (still) a security flaw to check MIME only by extension?
I was working on an HTTP-Server in rust and realized that there aren't any libraries that properly check the MIME type for Files without a "magic number" like JPEG.
I researched and found ...
0
votes
1
answer
119
views
Loading module from “http://localhost/js/three.module.js” was blocked because of a disallowed MIME type (“text/html”
I am trying to use three.module.js but I'm having a big deal getting it to work die to the MIME type blocking, I'm using xampp as a local host (I set up xampp to allow .js types also as an attempt to ...
0
votes
0
answers
88
views
Artifactory - Bad header value content-type of pom.xml from repo.spring.io
We are not able to download pom.xml files from repo.spring.io with our updated 'Sonatype Nexus Repository' due to an invalid header value for content-type returned by artifactory.
2024-02-14 06:46:54,...
-1
votes
1
answer
124
views
MIME type for reading CSV file in an Android app does not work
maybe I can get help here. I'm working on an Android app in Java and try to pick a .csv file to import some data:
public void onButtonImportClick(View view) {
Log.d(TAG, "...