exception 'Zend_File_Transfer_Exception' with message 'The given destination is not writeable' #65

zfbot opened this Issue Apr 5, 2013 · 1 comment


None yet

2 participants


Jira Information

Original Issue: ZF-12543
Issue Type: Bug
Reporter: yvsppt
Created: 03/15/13
Components: Zend_File_Transfer


creation of files (or directories) are permit in the directory specified by php.ini directive "upload_tmp_dir" but write on directory is forbidden (rename, move, delete)

Zend_File_Transfer_Adapter_Abstract use internal method _isPathWriteable() to check if a file can be created in its method _getTmpDir().

After tmpDir is defined, method setDestination() is called and it's simply a call to php function is_writable that return false in our case (so exception is thrown)

Why not use the same method - _isPathWriteable() which create a test file - to check if a file can be wrote in directory ?

zend framework: 1.12.0 (but seems exists in 1.12.3)
php 5.4.0
os: windows server 2008


This issue was ported from the ZF2 Jira Issue Tracker at

Known GitHub users mentioned in the original message or comment:

@froschdesign froschdesign was assigned Nov 12, 2013
@xopherdeep xopherdeep pushed a commit to xopherdeep/Zend-Framework-v1 that referenced this issue Jul 3, 2014
@froschdesign froschdesign Fixes #65 - use "_isPathWriteable" in "setDestination" method 35351c3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment