Bug 6274

Summary: Permanent storage of user-uploaded files
Product: Koha Reporter: Ian Walls <koha.sekjal>
Component: Architecture, internals, and plumbingAssignee: Galen Charlton <gmcharlt>
Status: CLOSED FIXED QA Contact: Bugs List <koha-bugs>
Severity: enhancement    
Priority: P5 - low CC: katrin.fischer, m.de.rooy
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 6874, 8130    
Bug Blocks:    

Description Ian Walls 2011-04-27 22:51:13 UTC
C4::UploadedFile has a FIXME to allow for the permanent storage up user-uploaded files.  Currently, all files are stored in /tmp, which is wiped on reboot on many (all?) Linux distros.  Enabling permanent storage of user-uploaded files would allow for non-database storage of all variety of media.

This could be as simple as adding a flag to the new() routine of the UploadedFile object to indicate permanent or temporary.  That, along with a directory defined in koha-conf.xml, may be sufficient.
Comment 1 Katrin Fischer 2012-07-11 04:24:56 UTC
There are different mechanisms now to upload files to Koha, features I can think of are:

- local cover images (implemented)
- patron images (implemented)
- uploading files for marc records (bug 6874)
- uploading PDF files for patron records (bug 8130)


Can this bug be closed? Do we we need a unified way to upload files to Koha as there might be more use cases in the future?
Comment 2 Marcel de Rooy 2016-06-08 13:56:12 UTC
Koha::Upload now allows you to store an upload permanently within a defined category.