Skip to content
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

Wmg write upload #1

Merged
merged 5 commits into from
Feb 1, 2024
Merged

Wmg write upload #1

merged 5 commits into from
Feb 1, 2024

Conversation

allthesignals
Copy link
Collaborator

Ticket

{LINK TO TICKET}

Changes

Writes the uploaded file to the os' tmp directory and prints the written file path in the console

Comment on lines -109 to -123

# Confirms Storybook still builds successfully
check-storybook-builds:
name: Build check - Storybook
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache-dependency-path: ${{ env.LOCKFILE_PATH }}
cache: ${{ env.PACKAGE_MANAGER }}
- run: npm ci
- run: npm run storybook-build
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure this was useful for us so removed it but could add it back later... it's currently broken

@@ -4,7 +4,7 @@
"private": true,
"scripts": {
"build": "next build",
"dev": "next dev",
"dev": "NODE_OPTIONS='--inspect' next dev",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice for chrome devtools inspection

bodyParser: {
sizeLimit: "10mb",
},
bodyParser: false,
Copy link
Collaborator Author

@allthesignals allthesignals Feb 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

turn off bodyParser to allow Formidable to do its thing

@millerti millerti self-requested a review February 1, 2024 16:47
@allthesignals allthesignals mentioned this pull request Feb 1, 2024
@millerti
Copy link
Collaborator

millerti commented Feb 1, 2024

I think I must be doing something wrong, but I'm running the workflow where I upload a small jpg and:

  1. The chrome console just says "finished", it doesn't print the file location
  2. The terminal session I'm running the code in doesn't print the file location
  3. I don't see any new file in /tmp/

@allthesignals
Copy link
Collaborator Author

@millerti what's your node version?

@millerti
Copy link
Collaborator

millerti commented Feb 1, 2024

Per discussion, this now works as described. It does seem to bury the file in /var instead of /tmp so maybe just update the description?

@allthesignals allthesignals merged commit abc404c into main Feb 1, 2024
5 checks passed
allthesignals pushed a commit that referenced this pull request Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants