WordPress cannot upload data after migration

I have a similar problem, and the issue is resolved.
Follow the steps:

  1. Login to database phpmyadmin.
  2. Click on your database and find a table with the name “wp_options” and click on it.
    enter image description here

  3. Click on Browse at the right top side.

  4. Find “upload_path” and click on pencil icon to edit field.
    enter image description here

  5. Cut the file location path and paste somewhere for safe side.

  6. Click on Go for save changes.

Issue Resolved
Go to WordPress >Media > add new > upload any file and check.

I hope your issue resolved with this method.

tech