BCcampus / pressbooks-openstax-import

[UNMAINTAINED] Pressbooks Plugin for OpenStax Textbook Import
GNU General Public License v3.0
5 stars 0 forks source link

Import Error: Destination directory for file streaming does not exist or is not writable #74

Closed johnpeterm closed 6 years ago

johnpeterm commented 6 years ago

Description

When importing Book from the URL : https://cnx.org/contents/HLT_qvJK@6.2:wsOQ6HtH@8/Preface-to-Pfeiffer-Applied-Pr

We get the error Destination directory for file streaming does not exist or is not writable 14

Expected behaviour

[What you expected to happen]

Actual behaviour

[What actually happened]

Steps to reproduce the problem

Import book from URL: https://cnx.org/contents/HLT_qvJK@6.2:wsOQ6HtH@8/Preface-to-Pfeiffer-Applied-Pr

System Information

bdolor commented 6 years ago

Hi @johnpeterm - the value of the URL seems to be problematic. If you're using the URL to import an openstax book, it's meant to point at the downloadable zip file. So for the above book, that URL would be:

If you use the above URL, the book imports without any problems.

image

The value you've supplied above only points to the preface page. The importer isn't designed to bring in individual pages, rather the entire openstax book.

johnpeterm commented 6 years ago

The cause of the above error seems to be an server issue. Temporary files were not allowed to created, once we allowed temp files to be created in the server, the book imported perfectly fine.

bdolor commented 6 years ago

great! good to know, thanks for following up.