Find Jobs
Hire Freelancers

Multipart date post file (txt) in ruby on rails app

€8-30 EUR

処理中
投稿日: 6年以上前

€8-30 EUR

完了時にお支払い
Hello, I'm building a website for the management of an hotel. I'm trying to post a txt file to an external server (police), but i'm a beginner so need some help. The file (which i generate) have to be send to a server with the following caracteristic: ENCTYPE="multipart/form-data" METHOD="POST" type="file" name="fichero" the url is : https://usuario:contrase%C3%B1a@[login to view URL] usuario is ID and contrase is Password So far i've written this using multipart but nothing it coming through: require 'net/http/post/multipart' url = [login to view URL]("https://" + username + ":" + password + "@[login to view URL]") [login to view URL](filep) do |jpg| req = Net::HTTP::Post::[login to view URL] [login to view URL], "file" => [login to view URL](jpg, "file", "document") http = Net::[login to view URL]([login to view URL], [login to view URL]) http.use_ssl = ([login to view URL] == "https") response = [login to view URL](req) redirect_to account_path flash[:notice] = "data send to police" end end --------------------------- Let me know if you can help me :) Thanks in advance
プロジェクト ID: 15774010

プロジェクトについて

3個の提案
リモートプロジェクト
アクティブ 6年前

お金を稼ぎたいですか?

Freelancerで入札する利点

予算と期間を設定してください
仕事で報酬を得る
提案をご説明ください
登録して仕事に入札するのは無料です
この仕事に3人のフリーランサーが、平均€31 EURで入札しています
ユーザーアバター
I am an long time ruby on rails developer. That is my every day job and its very familiar to me. I can do it very quickly.
€28 EUR 1日以内
0.0 (0 レビュー)
0.0
0.0

クライアントについて

SPAINのフラグ
Malaga, Spain
0.0
0
お支払い方法確認済み
メンバー登録日:3月 28, 2016

クライアント確認

ありがとうございます!無料クレジットを受け取るリンクをメールしました。
メールを送信中に問題が発生しました。もう一度お試しください。
登録ユーザー 投稿された仕事の合計
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
プレビューを読み込み中
位置情報へのアクセスが許可されました。
あなたのログインセッションの有効期限がきれ、ログアウトされました。もう一度ログインしてください。