-
Notifications
You must be signed in to change notification settings - Fork 8.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Uptime] fix synthetics recorder file upload #127614
[Uptime] fix synthetics recorder file upload #127614
Conversation
Pinging @elastic/uptime (Team:uptime) |
@@ -38,7 +38,7 @@ export function Uploader({ onUpload }: Props) { | |||
onUpload({ scriptText: '', fileName: '' }); | |||
return; | |||
} | |||
if (files.length && files[0].type !== 'text/javascript') { | |||
if (files.length && !files[0].type.includes('javascript')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MIght need to have regex that includes javascript and ecmascript.
💚 Build SucceededMetrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
Co-authored-by: shahzad31 <shahzad.muhammad@elastic.co> (cherry picked from commit 347acc9)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
Summary
Fixes #127515
Accepts
text/javascript
,application/javascript
andapplication/x-javascript
mime types for the Script Recorder upload.Testing
Testing should be done in Chrome, Firefox and Safari.