Skip to content
This repository was archived by the owner on Jul 24, 2018. It is now read-only.

Conversation

@josh4trunks
Copy link
Contributor

Fixes #291 (comment)

I use owncloud's get_temp_dir() because \OCP\Files::tmpFolder(); would change every call. This would be alot of wasted IO + CPU because the 1MB+ user directory would need to be created repeatedly.

@josh4trunks
Copy link
Contributor Author

@VicDeo @enoch85 @brantje

@enoch85
Copy link

enoch85 commented Jul 15, 2014

@owncloud-bot ok to test

@enoch85
Copy link

enoch85 commented Jul 15, 2014

Just tested and it seems to work. Thank you! 👍

Copy link
Contributor

Choose a reason for hiding this comment

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

@josh4trunks I guess \OCP\Files::tmpFolder is better

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@VicDeo I tried using that af first but it would generate a random folder each time. We want a consistent location so Documents doesn't need to create 1MB+ of files everytime it generates a preview. How about DATADIRECTORY/documents instead? I know the notes add uses DATADIRECTORY/notes for all its stuff.

Copy link
Contributor

Choose a reason for hiding this comment

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

oops, I should read your explanation before looking into the code.
This openoffice dir seems to have nothing private inside so get_temp_dir is good too.
escapeshellarg is needed here though

Copy link
Contributor Author

Choose a reason for hiding this comment

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

you mean save get_temp_dir to a variable then use escapeshellarg?
I can do this tonight when I get back from work;otherwise feel free to make the changes if you'd like. We also need this line added to the conversion test on the admin page.

@VicDeo
Copy link
Contributor

VicDeo commented Jul 15, 2014

@josh4trunks like that #311

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[7.0 beta 1] What about .doc and .docx files? Don´t work.

3 participants