Streamit Laravel - Documentation

How to Solve the Media Upload Issue in the Admin Panel?

Why Cron Job is Required

The Media Library image upload process runs in the background.
If the cron job is not properly configured or not running, the image processing cannot be completed.

As a result, images will not be uploaded.

To ensure the Media Library and other scheduled tasks work properly, you must configure the cron job on your server.

Step 1:

Run the following command in the terminal:

crontab -e

Step 2:

Then paste the following line:

* * * * * cd /your_project_path && php artisan schedule:run >> /var/log/apache2/crontab.log 2>&1

Important

You must replace your_project_path with your actual project path.

For example:

If your project is installed in a different directory, modify the command like this:

* * * * * cd /your_project_path && php artisan schedule:run >> /var/log/apache2/crontab.log 2>&1

In Simple Words

Replace your_project_path with the full path of the folder where your project is installed.

Final Result

Once the cron job is properly set, the:

  • Media Library
  • Image processing
  • Other scheduled tasks

will start working correctly.