Skip to content

Instantly share code, notes, and snippets.

View dmitry-mukhin's full-sized avatar
🎯
Focusing

Dmitry Mukhin dmitry-mukhin

🎯
Focusing
View GitHub Profile
@dmitry-mukhin
dmitry-mukhin / composer.json
Last active February 13, 2017 04:26
Saving uploaded files to custom S3 key with PHP
{
"name": "uploadcare/custom-s3",
"description": "Custom S3 storage example",
"license": "MIT",
"authors": [
{
"name": "Dmitry Mukhin",
"email": "dm@uploadcare.com"
}
],
dd if=/dev/urandom of=garbage bs=5M count=1
curl -F file=@garbage -F UPLOADCARE_PUB_KEY=demopublickey -w "\n%{speed_upload}\n%{time_connect} %{time_starttransfer} %{time_total}\n" https://upload.uploadcare.com/base/
l10n.translations.en = {
logout: 'Log out',
error: {
a: 'Something went wrong. Please',
b: 'reload',
c: 'Here some technical details:'
},
sourceName: {
gdrive: 'Google Drive',
dropbox: 'Dropbox',