Giter Club home page Giter Club logo

Comments (4)

teamupdivision avatar teamupdivision commented on June 4, 2024

Hello @Lamb11,

Thank you for using the Creative Tim products and for informing us of this issue.

For the file name to show in the label box you need to add for the form-group of photo in the label tag the classes class="custom-file-label text-truncate" and at the end of the file after the endsection you need to push a js script with:
@Push('js')
<script>
$('.custom-file-input').on('change', function() {
let fileName = $(this).val().split('').pop();
$(this).next('.custom-file-label').addClass("selected").html(fileName);
});
</script>
@endpush

This will help you see the file name and you can add it both in your create and edit blades.

If you need any other information, please let us know.

Best,
UPDIVISION Team

from ct-argon-dashboard-pro-laravel.

Lamb11 avatar Lamb11 commented on June 4, 2024

Hola buenas noches no sirvio correctamente, al subir mi archivo me marca null, no carga mi archivo si le quito el estilo si lee mi archivo correctamente, si subo mi archivo con el nombre ejemplo.01 solo se ve una letra, y ademas no se sube mi archivo bueno más bien no lo lee. Además quiero que diga Buscar aparece Browse

<form action="{{route('report.importExtendedStorageData', $account) }}" method="post" enctype="multipart/form-data"> @csrf <input type="file" class="custom-file-input" id="customFileLang" lang="es"/> <label class="custom-file-label text-truncate" for="customFileLang"></label> <br><br> <button type="submit" class="btn btn-primary btn-round">Importar Almacenamiento Prolongado</button> <span class="float-right mr-4"><a href="{{ route('report.getLongStorageData', ['account' => $account]) }}" target="_blank" id="cmd" class="btn btn-sm btn-primary">{{ __('Descargar') }}</a></span> </form>

y hasta abajo tengo `@Push('js')

<script> $('.custom-file-input').on('change', function() { let fileName = $(this).val().split('').pop(); $(this).next('.custom-file-label').addClass("selected").html(fileName); }); </script>

@endpush`

from ct-argon-dashboard-pro-laravel.

teamupdivision avatar teamupdivision commented on June 4, 2024

Hi @Lamb11,

Please check the class of input to be custom-file-input, with no spaces, and to match with the one in the js script. Make sure that @Push is not with first letter uppercase and check your routes and actions. If you want, you can share the controllers and blades with us.

For overwriting the default name of the button, you should add at the end of the tag from app.blade.php this:
<style>
.custom-file-input:lang(en)~.custom-file-label::after {
content: "Search";
}
</style>

Please let us know if this worked.

Best,
UPDIVISION Team

from ct-argon-dashboard-pro-laravel.

teamupdivision avatar teamupdivision commented on June 4, 2024

Hi @Lamb11,

We hope that our instructions helped you with that issue.

Should you have any other questions or problems, please do not hesitate to contact us.

Best,
UPDIVISION Team

from ct-argon-dashboard-pro-laravel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.