JAWS-UG宮崎第3回勉強会LT資料(Browser Uploads to S3 using HTML POST Forms)の記事で、S3にブラウザから直接アップロードする方法を紹介しましたが、そのときは、静的なHTMLフォームを前提として、Base64のpolicyやsignatureは別プログラム(Ruby)で作成していました。 今回は、そのHTMLフォームをPHPで生成し、有効期限やアップロードファイル名、リダイレクト先などを動的に変更できるようにしてみました。 コードは下記の通りです。 "/> 上記は、有効期限をHTMLフォームが作成されてから1分以内とし、アップロードファイル名やリダイレクトURLにid(ユーザーID等)が反映されるようにしています。 S3へのアップロードが成功すると、下記のURLにリダイレクトされ、リダイレクトURLに事前に付与しておいたパラメータ(id=0
こんちには。 職人見習いの木村です。 今回は、オンラインでHTML構文などがチェックできるサイトを紹介します。 新規に立ち上げるサイト公開前にぜひ使いたいです。 ■HTML構文チェック ・Markup Validation Service http://validator.w3.org/ W3Cが定める、HTMLの構文をチェックしてくれます。 まずは、ここを完璧にしておきたいです。 ■CSSチェック ・W3C CSS 検証サービス http://jigsaw.w3.org/css-validator/ W3Cが定める、CSSの構文をチェックしてくれます。 クロスブラウザで効いていれば問題ないと思いますが、W3Cに則った書き方をすれば問題ないです。 ■リンク切れチェック ・W3C Link Checker http://validator.w3.org/checklink 公開してからのリン
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く