Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Ruby
Posted by: Mandisi Makwakwa
Added: May 22, 2018 3:41 PM
Views: 19
Tags: no tags
  1. photo = File.open("00909_8qYJaR8wTix_600x450.jpg", "a")
  2. path = File.expand_path(photo)
  3. browser.file_field(:type,"file").set(path)