0

ユーザーが大きなファイルと、タイトルや説明などの情報を提供する単一の Web フォームを作成したいと考えています。フォームが送信されると、ファイルは (Web サーバーにアップロードせずに) Amazon S3 に直接アップロードされ、情報は PHP を使用してデータベースに追加されます。

どうすればこれを行うことができますか?ダイレクト アップロード ポスト ソリューションを使用できることはわかっていますが、他の情報をデータベースに追加することはできません。

4

1 に答える 1

0

I would implement an ajax submit of the file on S3 (using the direct upload parameters, eventually) and then submit all the other fields to your webserver in a second step (even not ajax, of course).

You could also use an hidden field in your form to submit the new S3 link (which you can retrieve after the ajax upload is completed), since I guess you need to store it together with all the other data.

于 2013-12-01T22:48:24.353 に答える