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

Use uploaded_file for new versions #4165

Merged
merged 1 commit into from
Dec 11, 2019
Merged

Use uploaded_file for new versions #4165

merged 1 commit into from
Dec 11, 2019

Conversation

ghost
Copy link

@ghost ghost commented Nov 29, 2019

This PR fixes an issue with file version where the jobs are being run on a different server to the web application - a common scenario in production.

New file versions are uploaded to the system temp (normally /tmp) and so cannot be found on the jobs server.

I have fixed this in the FileSetsController by creating a Hyrax::UploadedFile for the new version. This is in line with behaviour for uploading files during work create and update, and ensures that the file is written to the hyrax uploads directory, which will have been shared across servers.

@samvera/hyrax-code-reviewers

@ghost ghost changed the title WIP: Use uploaded_file for new versions Use uploaded_file for new versions Nov 29, 2019
@no-reply no-reply merged commit 1283bbe into master Dec 11, 2019
@ghost ghost deleted the uploaded-versions branch December 12, 2019 15:37
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.

1 participant