Error: Forbidden while uploading files – UserPro Forums https://forum.userproplugin.com/forums/topic/error-forbidden-while-uploading-files/feed/ Sat, 18 May 2024 09:28:52 +0000 https://bbpress.org/?v=2.6.2 en-US https://forum.userproplugin.com/forums/topic/error-forbidden-while-uploading-files/#post-40999 <![CDATA[Error: Forbidden while uploading files]]> https://forum.userproplugin.com/forums/topic/error-forbidden-while-uploading-files/#post-40999 Mon, 16 Jun 2014 12:17:46 +0000 MikaelT Hi,

I get the Error: Forbidden while uploading profile picture as well as when I try to upload a “cv” file that I have created as a user field.

I have read everything about CHMOD permissions and -htaccess restrictions but just cant get it to work. Do you have any guidance on what dirs and files that should have what permissions for this to work?

]]>
https://forum.userproplugin.com/forums/topic/error-forbidden-while-uploading-files/#post-41002 <![CDATA[Reply To: Error: Forbidden while uploading files]]> https://forum.userproplugin.com/forums/topic/error-forbidden-while-uploading-files/#post-41002 Mon, 16 Jun 2014 12:18:59 +0000 admin Please try to contact your webhost, they probably know why you can’t upload files via the PHP method . It could be a permission issue or they deny this function at once

]]>
https://forum.userproplugin.com/forums/topic/error-forbidden-while-uploading-files/#post-41017 <![CDATA[Reply To: Error: Forbidden while uploading files]]> https://forum.userproplugin.com/forums/topic/error-forbidden-while-uploading-files/#post-41017 Mon, 16 Jun 2014 12:29:31 +0000 MikaelT I dont belive it is an issue with the host since they are very allowing but I will. What PHP methods should they be allowing or what more exactly do I need to ask them?

]]>
https://forum.userproplugin.com/forums/topic/error-forbidden-while-uploading-files/#post-41019 <![CDATA[Reply To: Error: Forbidden while uploading files]]> https://forum.userproplugin.com/forums/topic/error-forbidden-while-uploading-files/#post-41019 Mon, 16 Jun 2014 12:31:53 +0000 admin You should be able to use move_uploaded_file( $_FILES[“userpro_file”][“tmp_name”], $target_file ); and upload files via php file: fileupload/fileupload.php in userpro/lib folder

]]>
https://forum.userproplugin.com/forums/topic/error-forbidden-while-uploading-files/#post-41088 <![CDATA[Reply To: Error: Forbidden while uploading files]]> https://forum.userproplugin.com/forums/topic/error-forbidden-while-uploading-files/#post-41088 Tue, 17 Jun 2014 14:13:23 +0000 MikaelT Hi,

My hosting provider has not checked our site for potential problems and they can confirm that they have no limits on uploads etc and that uploading via PHP works just fine outside of your plugin.

They suspect that some permissions might be wrong or that there is a reference to an included function etc that is not correct. Can you please provide me with the exact permissions that needs to be set for all directories and files as well as what kind of references for other php files I need to check for?

My plugin is in a standard installation of WordPress and I have not changed any directory names etc.

]]>
https://forum.userproplugin.com/forums/topic/error-forbidden-while-uploading-files/#post-41126 <![CDATA[Reply To: Error: Forbidden while uploading files]]> https://forum.userproplugin.com/forums/topic/error-forbidden-while-uploading-files/#post-41126 Tue, 17 Jun 2014 23:10:38 +0000 MikaelT