Comments (2)
An initial investigation leads to this section in lib/technoweenie/attachment_fu/backends/cloud_file_backend.rb:
module CloudFileBackend
def self.included(base)
# ...
@@cf = CloudFiles::Connection.new(@@cloudfiles_config[:username], @@cloudfiles_config[:api_key])
@@container = @@cf.container(@@container_name)
# ...
end
end
This will try to connect and authenticate with the CloudFile server and then obtain the container.
The problem is that if there is nobody listening on the other side, or if it takes ages and ends in a timeout, that this stalls the code loading at this point.
from attachment_fu.
It's best not to upload your files to any remote service in your rails app. Do this stuff in a background queue.
from attachment_fu.
Related Issues (20)
- Rails 3 HOT 6
- displaying pdf attachment inline, in the view (problem with browsers on Windows) HOT 2
- attachment_fu + factory_girl HOT 2
- batch import does not create thumbnails and does not take into account MetaModel attachment options
- Cannot upload file from ActionController::TestUploadedFile in JRuby HOT 3
- Switching between different machines HOT 1
- S3/Cloud Creates wrong public path when using separate thumbnail class HOT 1
- attachment_fu + ruby 1.9.1 HOT 9
- Core Image Processor causes segmentation faults on OS X 10.6.x - 64bit.
- Validating image dimensions before save
- Word 2010 view
- Solved Rails 3.0.3 temp_file size problem. Maybe this needs a more solid fix HOT 1
- Server Setting Missing In Config File
- Form with "f.file_field :uploaded_data" causes 500 internal server error HOT 3
- TypeError (can't convert nil into Integer): HOT 1
- In my production machine thumbnils arte not getting created
- RAILS_ROOT is gone in rails 3.1.0 HOT 2
- test do not run without being inside a rails project
- Error when attempting to install attachment_fu using bundler
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from attachment_fu.