Laravel-Backpack / CRUD

Build custom admin panels. Fast!
https://backpackforlaravel.com
MIT License
3.16k stars 894 forks source link

[Bug] File Deletion Error on Create Operation in Dropzone Integration #5585

Closed netskycz closed 3 months ago

netskycz commented 3 months ago

Description:

We have encountered an issue with the Dropzone file upload feature in our Laravel Backpack integration. The problem occurs specifically during the "Create" operation, while the "Update" operation works as expected.

Issue Details:

We need to investigate the file handling and deletion logic, particularly the differences between the Create and Update operations, and why the $value might be null or incorrect only in the Create operation. Further logs and testing will be necessary to isolate and resolve the issue.

PHP VERSION:

8.3.6

PHP EXTENSIONS:

Core, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, random, Reflection, SPL, session, standard, sodium, mysqlnd, PDO, xml, bcmath, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, iconv, igbinary, intl, exif, mysqli, pcov, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, readline, redis, shmop, SimpleXML, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlwriter, xsl, zip, Zend OPcache

LARAVEL VERSION:

10.48.14.0

BACKPACK PACKAGE VERSIONS:

backpack/basset: 1.3.5 backpack/crud: 6.7.23 backpack/devtools: 3.1.5 backpack/generators: v4.0.5 backpack/pro: 2.2.11 backpack/theme-tabler: 1.2.11

welcome[bot] commented 3 months ago

Hello there! Thanks for opening your first issue on this repo!

Just a heads-up: Here at Backpack we use GitHub Issues only for tracking bugs. Talk about new features is also acceptable. This helps a lot in keeping our focus on improving Backpack. If you issue is not a bug/feature, please help us out by closing the issue yourself and posting in the appropriate medium (see below). If you're not sure where it fits, it's ok, a community member will probably reply to help you with that.

Backpack communication channels:

Please keep in mind Backpack offers no official / paid support. Whatever help you receive here, on Gitter, Slack or Stackoverflow is thanks to our awesome awesome community members, who give up some of their time to help their peers. If you want to join our community, just start pitching in. We take pride in being a welcoming bunch.

Thank you!

-- Justin Case The Backpack Robot

jcastroa87 commented 3 months ago

Hello @netskycz can you please share the field and controller configuration to replicate the error.

Thanks.

Cheers.

jcastroa87 commented 3 months ago

Hello @netskycz

I try to replicate the error, but I could, everything work as expected.

Screenshot 2024-08-01 at 3 09 50 PM

i see all the values to operate normally.

Could you please share more information to replicate this issue, did you try this field and config in a clean install.

Thanks.

jcastroa87 commented 3 months ago

Due to not activity i will close this issue, but please feel free to re-open or create a new one if needed.

Cheers.