Error while loading files in SmartDocs

Not applicable

When we are trying to upload swagger file in Apigee Developer portal using smartdocs, getting the following error:

Results For: file upload error. could not move uploaded file.Error smartdocs could not save file

The permission in the tmp is 755. An y other issue that can cause this?

0 2 129
2 REPLIES 2

Not applicable

In error log following two errors are there:

upload error. could not move uploaded file to destination temporary://swagger_test.js.txt

Warning :move_uploaded_file(temporary://swagger.js.txt): faile to open Stream:DrupalTemporaryStreamWrapper::Stream_open, call failed in drupal_move_uploaded_file()

It sounds like you need to validate the temporary file directory is writable by the Apache server. Here is info on the filesystem settings: https://www.drupal.org/node/15368

Here is a page that also goes through how to properly set filesystem permissions: https://www.drupal.org/node/244924