WebFaction
Community site: login faq

Does anyone have a simple PHP application which can show upload progress? The majority of "PHP upload progress" solutions do not work behind an Nginx reverse proxy.

asked 24 Oct '11, 00:55

ryans ♦♦
5.0k93260
accept rate: 43%


Yes. There is one solution - swfupload - which works exceptionally well. The downside is that it requires Flash.

The demos provided on the swfupload site are not complete, out-of-the-box solutions. I have prepared an swfupload ready-to-use example which can be installed as follows:

  1. Create a new Static/CGI/PHP-5.3 application from the Control Panel
  2. Create a new website record to mount the application on a domain under your account.
  3. Log into your account via SSH.
  4. Navigate to your new application under ~/webapps/APP_NAME/, where APP_NAME is the application from step 1
  5. Enter the following to download and extract this example code:

wget http://mirror.ryansanden.com/permalink/swfupload_example/swf_uploadprogress_example-2.2.0.1.tar.gz
tar -xzf wf_uploadprogress_example-2.2.0.1.tar.gz

After this is complete, you should be able to view the two included examples on the domain mapped in Step 2. The two examples each include an uploads folder which will contain all uploaded filed. For security reasons, you will want to move this outside of the ~/webapps/APP_NAME directory and update the uploads.php file to point to the new location.

permanent link

answered 24 Oct '11, 01:12

ryans ♦♦
5.0k93260
accept rate: 43%

edited 25 Oct '12, 22:40

This AJAX uploader is another good one. It works on WebFaction, supports multiple back-ends (not just PHP) and does not use Flash.

permanent link

answered 24 Oct '11, 08:38

seanf
12.2k41836
accept rate: 37%

This looks interesting. If I understand correctly, this does not rely on server-side settings? Because afaik all other solutions depend on the nginx upload progress module, and that is not supported now --see this question. Or has that changed? Should I ask this in a different question (but it seems to overlap) ?.

(07 Jan '13, 03:39) nathanvda

We still do not support nginx upload progress, and the AJAX uploader mentioned above does work on our system.

(07 Jan '13, 13:24) seanf
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×262
×29
×4

question asked: 24 Oct '11, 00:55

question was seen: 5,233 times

last updated: 07 Jan '13, 13:24

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM