Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File not in tmp when using mod_porter #12

Open
efalcao opened this issue Oct 24, 2009 · 5 comments
Open

File not in tmp when using mod_porter #12

efalcao opened this issue Oct 24, 2009 · 5 comments

Comments

@efalcao
Copy link

efalcao commented Oct 24, 2009

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!

@efalcao
Copy link
Author

efalcao commented Oct 29, 2009

bump!

@pkmiec
Copy link
Contributor

pkmiec commented Oct 30, 2009

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.

@jcn
Copy link

jcn commented Apr 7, 2010

I see that PorterDir patch has been merged into the main project, but I can't seem to get it working properly. Running on Ubuntu, I followed the installations on the main modporter page and the module works great other than not being able to use PorterDir. Files continue to get streamed into /tmp . Are there any restrictions on PorterDir (owner, path, etc)?

@bengreenberg
Copy link

jcn, did you get this figured out? I'm having the same problem on Leopard.

@jcn
Copy link

jcn commented May 26, 2010

Never got it figured out. We were in the middle of migrating to nginx anyway, so we just finished and used the nginx upload module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants