# Uppy is showing success, but the file is not actually uploaded to directory

**URL:** <https://community.transloadit.com/t/uppy-is-showing-success-but-the-file-is-not-actually-uploaded-to-directory/16288>\
**Category:** Uppy\
**Created:** [October 17, 2022, 9:12am UTC](https://community.transloadit.com/t/uppy-is-showing-success-but-the-file-is-not-actually-uploaded-to-directory/16288 "2022-10-17T09:12:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DevMushref](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/devmushref/32/669_2.png) [@DevMushref](https://community.transloadit.com/u/DevMushref)\
**Post date:** [October 17, 2022, 9:12am UTC](https://community.transloadit.com/t/uppy-is-showing-success-but-the-file-is-not-actually-uploaded-to-directory/16288/1 "2022-10-17T09:12:07Z")

</div>

Hello!

I am using Laravel 9 with Uppy. I have an issue that when the upload is successful, the file isn’t actually stored in the destination:

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/transloadit/original/1X/a0aa2484567313ea8b9f1e1cff4b834ea5f7ee0f.png)

I have a global file upload action that runs across the entire application:

```auto
class UploadImageAction implements UploadImageContract
{
    public function handle(Request $request, $imageProperty, $image, $imageDir)
    {
        if ($request->hasFile($imageProperty)) {
            // Handle uploading lf_image
            if (!is_null($image) && Storage::exists($image)) {
                // Throw exceptions here
                Storage::delete($image);
            }
            // Throw exceptions here
            return $request->file($imageProperty)->store($imageDir);
        }
    }
}

```

It was working fine before adding Uppy to the project, but I don’t know why the file/s aren’t being uploaded?

The files are being stored together with the form data in the controller like so:

```auto
public function storeReport(Request $request)
    {
        $report = new Report();
        $report->fill($request->validated());
        $report = $this->handleAttachments($request, $report); // Upload Image Action class here

        $report->save();

        if(!$report) {
            throw new ReportException('Something went wrong with the request.' . $report);
        }

        return $report;
    }

```

The files should show at `public/app/report/attachments`

This is the Uppy code:

```auto
uppy.use(Uppy.Form, {
    target: '#reportsForm',
    resultName: 'uppyResult',
    getMetaFromForm: true,
    submitOnSuccess: false,
    triggerUploadOnSubmit: false,
});

uppy.use(Uppy.XHRUpload, {
    endpoint: storeReport,
    limit: 10,
    formData: true,
    fieldName: 'attachment',
    allowedMetaFields: null,
    headers: {
        'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
    }
});

```
