In your WordPress database, edit upload_path in (wp)_options table. Change the upload path with your current path. Example – /home/UserName/public_html/WP-Directory/wp-content/uploads
Replace UserName with your user name and WP-Directory with the wordpress folder name. Remove WP-Directory if the wordpress is installed in root. (ie. public_html)