Every repository with this icon (
Every repository with this icon (
| Description: | Scale your file uploads edit |
-
When using the Ruby Oauth gem and mod_porter signatures aren't matching. I'm looking into this now, but if anyone has any ideas, that would be great.
Thanks!
BradlyComments
-
Once an upload is finished, mod_porter streams the contents into a new file, which is passed along to the app server. With large files this process can take a long time, and clients, such as swf_upload, can time out waiting for the request to complete.
Comments
-
Apache 1.3 configuration directives found
3 comments Created 3 months ago by mid9commanderI am getting "apache 1.3 configuration directives found" whenever I put "Porter On" into my . My Rake ran without any problem when installing the mod_porter into apache, so I am not sure what the problem may be. Can you please shed some lights?
Comments
mid9commander
Mon Aug 10 06:55:26 -0700 2009
| link
never mind, I was using the wrong includes.
mid9commander
Tue Aug 11 09:38:45 -0700 2009
| link
This can be closed
Hi,
I'm on CentOS Linux 5 using Apache 2.2.3 and am seeing the same issue. The modules compile cleanly but once I add Porter On to httpd.conf I get the "Apache 1.3 confguration directives found". I'm pretty sure I've got the proper include files. rake runs fine.
Any additional clues would be greatly appreciated.
Thanks,
Shawn
-
file still got sent to rack in params, which makes it very slow
0 comments Created 2 months ago by mid9commanderthe file was saved successfully by mod porter, but the file still goes into Rack as one of the params, is that to expected? On my dev machine, a 5M file upload takes at least 300ms, which is really slow. Can you shed some lights?
Comments
-
I have my upload form set up to use the iframe redirect hack to simulate an AJAX upload. When modporter is enabled, it downloads the entire file correctly, but when it hands it back to rails, the file created is zero length and the "render :update" code does not get to the browser.
I assume that the "render :update" is getting sent to mod_porter rather than the browser since mod_porter is acting as a middle man. (?)
If you need the code being used, let me know.
Comments
I didn't realize the hash is different than the normal upload, so that would explain the zero length file.
However I can't seem to access anything in the hash created by ModPorter. You do still access the hash (in this case, the filename) using conventions like params[:file][:data][:filename] correct?
If I try to access anything beyond inside of [:data] I get an error:
undefined method `[]' for #<ModPorter::UploadedFile: .... >
-
Returned ModPorter::UploadedFile object should have .length available
0 comments Created about 1 month ago by zarskiA non-modporter upload returns a file object that has .length. ModPorter has .size ; however, to make things smooth also provide a .length.
Comments
-
rake task for building mod_porter should also look for apxs2 executable
1 comment Created about 1 month ago by zarskiRake task only looks for apxs executable; however, on my install ( Ubuntu server 7.10 ) I had only a apxs2 executable. Therefore, I had to make a symbolic link for apxs.
Comments
-
A note about my system: i'm running snow leopard.
When mod_porter is off, my rails app receives RackMultiPart just fine.
When enabling mod_porter (and the rails plugin). I get an object that looks like this in my params hash:
<ModPorter::UploadedFile:0x10407c3a8 @content_type="application/octet-stream", @original_filename="Argentina.gif", @path="/tmp/apreqxlq8oj">
which all seems great- except there is no file in /tmp named apreqxlq8oj
any ideas/advice? /tmp is definitely chmod 777
thanks!
Comments
I had the same problem. In my case, the apache is on different machine than the mongrels and the /tmp directory is not shared between the two machines. I forked mod_porter and added optional PorterDir parameter to solve my problem. See here.
So that probably doesn't help you much with snow leopard, but I thought I'd mention it.












Did you get any further with this?
The Oauth spec allows for not including post parameters in the signature generation when the content-type of the request is multipart/form-data. Mod Porter changes the content-type of uploads to application/x-www-form-urlencoded. This was causing the signatures to not match up. I'm not sure if this is a bug in Mod Porter, but maybe just something that could be noted in the readme. Let me know if there is any other info you need.
Thanks,
Bradly
I assume you're only checking oauth signatures for the authentication actions / urls? or do you have to do that for everything. (I know nothing about oauth sorry).
If you can skip the processing for upload actions, perhaps you can just set mod porter's PorterMinSize directive to something high enough it doesn't trigger?