Skip to content

Instantly share code, notes, and snippets.

View robertbrodrecht's full-sized avatar

Robert Brodrecht robertbrodrecht

  • Big Communications
  • Birmingham, AL
View GitHub Profile
@robertbrodrecht
robertbrodrecht / README.md
Last active April 30, 2021 19:45
Validate Gravity Forms Empty File Uploads

iOS has a bug with input[type="file"] where a delay in submitting a form from an HTTPS URL after attaching a file will result in an empty zero byte file being sent to the server. To reproduce the issue, create a form with an input[type="file"] on an HTTPS URL, attach a file, then wait 90 seconds before submitting.

If you develop WordPress sites that use Gravity Forms, the above validation filter present an error message when empty, zero-byte files are uploaded.

@robertbrodrecht
robertbrodrecht / grid.html
Last active April 26, 2021 23:39
Simple CSS Grid Framework
<div class="row">
<div class="column column--6"></div>
<div class="column column--6"></div>
</div>
<div class="row">
<div class="column column--4"></div>
<div class="column column--4"></div>
<div class="column column--4"></div>
</div>
<div class="row">