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

Is this being maintained? #1

Open
cameronyule opened this issue Oct 9, 2009 · 3 comments
Open

Is this being maintained? #1

cameronyule opened this issue Oct 9, 2009 · 3 comments

Comments

@cameronyule
Copy link

Hey, I'm looking for a solution to the problem this library seems to solve, namely adding the ability to use Paperclip with remote URL’s, but it doesn’t appear to be working with the latest Paperclip release from Github.

Are you still using this code yourself? If so, which PC version are you using it with?

Many thanks.

@chris
Copy link
Owner

chris commented Oct 9, 2009

I am using it, it's in production at http://www.dealbase.com. We're currently using Paperclip 2.2.2. I keep meaning to upgrade Paperclip, so I'll see about it. However, you should also look at the latest Paperclip, because I thought it was implied that they had added a similar solution.

@cameronyule
Copy link
Author

Hi Chris, thanks for the reply. I've since narrowed the bug down to the fact the code is being executed via script/runner. When I run the same code via script/console everything is fine, so it doesn't appear to be an issue either with your code or Paperclip.

Essentially, while running in script console I get this output if I 'puts' the URLTempfile instance.

File:/var/folders/mJ/mJmuThQ9GryZJ-V3L1vJLk+++TI/-Tmp-/urlupload.3752.0

whereas when run via script runner I get

File:0x21ea0e4

Will investigate further :)

@chris
Copy link
Owner

chris commented Oct 9, 2009

Ok, let me know what you find out. Off hand that looks like it's using a tempfile for one of them, and in-memory representation of the other. I thought that was usually based on size, but maybe assuming it's the same file, I dunno.

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

2 participants