Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- waiting_room = RAILS_ROOT + '/public/images/up/wine_packs/queue'
- File.makedirs(waiting_room)
- File.open(File.join(waiting_room, "#{unique_id}.#{extension}"), 'w') do |file|
- file.write(params[:image].read)
- end
Add Comment
Please, Sign In to add comment