Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query.Deferred exception: fileinput_3566bbac is not defined #1863

Open
LuisEduardoGarcia51981 opened this issue May 29, 2024 · 0 comments
Open

Comments

@LuisEduardoGarcia51981
Copy link

Al usar Fileinput de Kartik, me genera el siguiente error:

Query.Deferred exception: fileinput_3566bbac is not defined ReferenceError: fileinput_3566bbac is not defined
at HTMLDocument. (http://localhost:8080/mjg_main_persona/createuser?id=4:1225:47)
at mightThrow (http://localhost:8080/assets/6706b111/jquery.js:3489:29)
at process (http://localhost:8080/assets/6706b111/jquery.js:3557:12) u

El codigo ingresado en un formulario para un archivo de vista en yii2 es:

field($model, 'profile')->widget(FileInput::classname(), [ 'options' => ['accept' => 'image/*'], 'pluginOptions' => [ 'showPreview' => true, 'showCaption' => true, 'showRemove' => true, 'showUpload' => false, ], ]); ?>

Ademas uso:
use kartik\file\FileInputAsset;
FileInputAsset::register($this);
Ese error me rompe el codigo y no me permite avanzar con la carga del formulario.
El error sucede en la linea 1225:
image
Como lo puedo solucionar?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant