How to send form using GO
Sending multipart/form-data form using GO
This time really simple solution to submit form using GO. This example allows you to submit form with fields, and also attach file
Sending multipart/form-data form using GO
This time really simple solution to submit form using GO. This example allows you to submit form with fields, and also attach file
Dealing with presigned URL
Object storage is getting more and more popular. AWS started, but nowadays, almost every provider has it. Recently Cloudflare announced its availability. DigitalOcean call them Spaces.
So today, we are trying to upload a file to an S3 type of storage with a presigned URL.
TL;DR: how to generate the correct URL and upload data into it.
How to deal with SEC_ERROR_REVOKED_CERTIFICATE
Recently I had a problem with my Caddy server . I wasn’t aware that it’s related to Caddy - the initial thought was that something went wrong with the SSL certificate. But I was wrong. The message was pretty “platonic”
Error code: SEC_ERROR_REVOKED_CERTIFICATE
How to export variables to PHP in secure way
It’s not a good practice to store your password in the code. It is a well-known fact, and on multiple occasions, people get hacked because they share their code (and passwords) accidentally with others.
Many bots are just browsing GitHub for lost AWS_SECRET_ACCESS_KEY
or GCE
credentials. I’m going to show you how to pass your AWS_SECRET_ACCESS_KEY
to PHP.
Inline Datepicker with vanilla JavaScript
I do write a lot of front-end code, despite being born to be a back-end guy. Long story short - we do have many inline editing features, especially elements like dates, which are pretty painful. HTML5 Introduced
input type=date
, which is good enough to cover most of the cases, and we no longer need ugly and slow .datepicker()
component from jQuery od 3rd party suppliers.
So if you do have edit you can use <input type="date" value="yyyy-mm-dd">
field, and a nice calendar will pop up. But we are looking for inline solution.