Uploaded Files
- Files are in directory structure, currently storage/[Application_id]
- Uploaded files are converted to PDF, Flash, and/or Images for use in various browsers.
- What file types will be supported?
- Images, PDFs,Â
- If we attempt to preserve filenames as uploaded we'll need to keep in mind at the very least OS illegal characters:
- An alternative which avoids all of above:
- Rename file to something we control and save original file to renamed file in DB.
- optionally save original filename next inside renamed file with .txt extension so we can easily use grep and find on the file system vs having to also make a DB calls.
- Rename file to something we control and save original file to renamed file in DB.
- File conversion tools:
- unoconvÂ
- libreoffice --headless --invisible --convert-to pdfÂ
- pandoc -o output.pdf -f docx input.docx