Can upload through FTP but not through WP uploader

Not necessarily. It might be only a problem with the file permissions. See https://codex.wordpress.org/Changing_File_Permissions for more information.