Comments (4)
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.
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.
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.
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)
- User cannot change his password in profile's settings HOT 4
- Page flickers on every load HOT 7
- The Argon Datatables is not Responsive like Material Datatables [Premium Support] HOT 1
- No validation for image upload on user profile HOT 3
- Truly Laravel 8 with Breeze and / or Jetstream HOT 1
- npm run production fails -> 100% - $icon-size-xl - 1 HOT 2
- How can I use the ajax call? HOT 3
- Sidebar Animation HOT 3
- Others Theme? HOT 3
- Range slider Result HOT 2
- Hi, I just can't figure out how to use full calendar. would you have a simple example with controller on how to view and add events? Thanks HOT 3
- Extend Edit and Delete feature to a new custom feature (Customers) HOT 8
- Horizontal scroll bar at the bottom of the page HOT 4
- Seeder Problems HOT 4
- How to work with fullcalendar HOT 1
- Primary color
- css and js not loading HOT 4
- Cant make page number of datatable dynamic [premium support] HOT 4
- Update to latest laravel [premium support] HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ct-argon-dashboard-pro-laravel.