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

Create initial HDR image upload process and store uploaded images and information in local directory #126

Closed
wants to merge 6 commits into from

Conversation

CheesyLaZanya
Copy link
Collaborator

@CheesyLaZanya CheesyLaZanya commented Dec 2, 2024

Closes #121

Placeholder code has been added for future S3 bucket support, but it will need tested and enabled once available.

Assuming you were already setup with this project before, to test this change, you will need to add the new variables from the .env.template file to your .env file locally

## Docker compose variables
NODE_ENV=development
UPLOAD_DIR=./uploads

Then run task dev, and once the environment is running and you are signed in, you can upload a valid .dng file from the main page.

In the the root folder, in /uploads, you will get the dng, and jpg preview, and a json file containing information about the upload. (Note the metadata endpoint needs updated so that value will be empty at the moment, #125 was added to track this).

The metadata json is temporary for in progress work and #124 has been added to track it's removal and switching this process to use our content endpoints.


NOTE this also comments out the "queue" on the home page since for now all reviews/approvals will be done by the admin page, from the work in issue #122

…tion of files selected, success, and displaying of errors and things like clearing selected files after upload.

Signed-off-by: Zachary Licastro <[email protected]>
…clean out metadata, and save jpeg preview. Use utc time as saved file name. Add axios and S3 library.

Signed-off-by: Zachary Licastro <[email protected]>
…better prepare for future S3 uploads.

Signed-off-by: Zachary Licastro <[email protected]>
Copy link

sonarqubecloud bot commented Dec 2, 2024

Quality Gate Passed Quality Gate passed

Issues
7 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

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.

Create process to allow HDR image uploads to local storage for testing purposes
1 participant