Jump to content
  • 0

File Upload Przy Rejestracji Nowego Klienta


Bobak

Question

1 answer to this question

Recommended Posts

  • 0

Już jakoś to ogarnąłem:

 

W authController.php w około 408 linii:

 

if (isset($_FILES['fileUpload']['name']) && !empty($_FILES['fileUpload']['name']) && !empty($_FILES['fileUpload']['tmp_name'])) { $extension = array('.txt', '.rtf', '.doc', '.docx', '.pdf', '.png', '.jpeg', '.gif', '.jpg'); $filename = uniqid().basename($_FILES['fileUpload']['name']); $filename = str_replace(' ', '-', $filename); $filename = strtolower($filename); $filename = filter_var($filename, FILTER_SANITIZE_STRING); $_FILES['fileUpload']['name'] = $filename; $uploader = new UploaderCore(); $uploader->upload($_FILES['fileUpload']); $customer->fileUpload = $filename; }

 

W authentication.php około 513 pod datą urodzenia:

 

<div class="uploader" id="uniform-fileUpload">
                <label >{l s='Jako nowy klient dodaj plik KRS lub CEIDG w celu weryfikacji i uzyskania dostępu do cen oraz możliwości hurtowego zakupu produktów.'}</label></br>
                <input type="hidden" name="MAX_FILE_SIZE" value="2000000" />
                <input type="file" name="fileUpload" id="fileUpload" class="form-control">
                <span class="action" style="-webkit-user-select: none;">Wybierz plik</span>
            </div>

 

I dostajemy plik do uploads w roocie.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...