Skip to content

Instantly share code, notes, and snippets.

Itay Taragano taragano

Block or report user

Report or block taragano

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View order_zip_download_creator.rb
class OrderAssetsZipDownloadCreator
def, force = false)
@order = Order.find(order_id)
@force = force
unless @order.download_zip_url.present? #prevent duplicate images from being added to zip.
View FileMaker-Cloudinary-Signed-Uploads.ps1
# Cloudinary credentials:
Set Variable [ $cloud_name; Value:"mycloudname" ]
Set Variable [ $api_key; Value:1234567890 ]
Set Variable [ $api_secret; Value:"abcdabcdabcdabcd" ]
# Validate presence of a file in "File Container"
If [ IsEmpty ( GetField ( "File Container" ) ) ]
Show Custom Dialog [ Title: "Error"; Message: "No image to upload"; Default Button: “OK, Commit: “Yes”; Button 2: “Cancel,
Commit: “No” ]
Exit Script [ Result: "No image to upload" ]
taragano / cloudinary-php-pure_javascript.php
Last active Aug 1, 2019
Client side signed uploads with pure Javascript and PHP
View cloudinary-php-pure_javascript.php
<h1>Upload to Cloudinary with FormData</h1>
<form action="" method="post" enctype="multipart/form-data" onsubmit="AJAXSubmit(this); return false;">
<legend>Upload example</legend>
<label >Select your photo:
<input type="file" name="file"></label>
You can’t perform that action at this time.