similar to: storing large string from browser

Displaying 20 results from an estimated 20000 matches similar to: "storing large string from browser"

2012 Sep 18
3
Nginx + Phusion Passenger 3 problem with "504 Gateway time-out"
Hi, I have a Rails 3.2 app. There is a specific request that takes a long time to execute. The context is, the user uploads a pdf, and then we have some processing through carrierwave + rmagick that generate a jpeg from the first page of the document. Everything works in dev mode using both webrick and thin. The problem happens on the prod environment with Nginx + Passenger. The request takes a
2011 May 17
2
Can't dump File ... when uploading files
I am getting this error on the redirect_to command ... I am using Rails 3 w Paperclip to upload files ( but I tried also CarrierWave .. same error) I tried to change the session store from cookie-based to database .. same error I tried to delete the params content ... I don''t know what to try next .. any clue ? thanks erwin -- You received this message because you are subscribed to
2011 Jan 07
1
Task with a legacy schema nightmare.
I have a the great task of migrating the backend of a large multi client application to Rails! I''m pumped for the opportunity to drop PHP, but a LOT of table schemas have a very "non-rails" setup. The main hangup is any image urls for the site live in a large monolithic table with a column to designate the other tables name and it''s primary key that has an image.
2009 Sep 23
6
Dreamhost launch issues. What gems are used in my rails app?
Hi guys, I made a quick app for a family member to be deployed on Dreamhost (low budget). It''s my first time deploying on DH so I''m not familiar with the restrictions. I''m having an issue where I''ve been able to get git on both systems and used capistrano to deploy the app. However migrations fail. I also tried exporting my local staging mysql schema and
2012 May 13
0
Website screenshot generator gem for rails
Hi guys, I''m looking for a good solution for website screenshots generator. I''m thinking of using PaperClip or CarrierWave, What is your suggestion ? What is the right way to do it ? Itamar -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send
2010 Aug 22
0
Paperclip - possible to modify file and load file content as string?
Wanted to see if anyone knows of a way - or the preferred way - to do these three tasks with Paperclip: 1) Access the content of an uploaded file before save. I did find that the following works before save, but is there a clearer way to do this: self.uploaded_file.queued_for_write[:original].open.read 2) Access the content of a file after save while my AR model instance is still alive and/or
2012 Jul 05
3
Deploying a rails 3.2 app
Hello there, I have been working in a startup for a few weeks now, and I am responsible for setting up the production environment and for "strengthening" the product (a rails app). By the way I''ve started reading "Deploying rails" from pragprog. The deployment of the app will be done through a private beta with about 200 members. The startup currently owns a VPS
2013 Jun 21
0
Carrierwave large file optimization
Carrierwave documentation includes this tip for uploading large files. Inside your uploader, add these two methods (they say) def move_to_cache true end def move_to_store true end to make the uploads work more efficiently. This is true, it does work -- as long as you aren''t trying to do anything with versions or other processing. If you do, then the upload will only ever
2011 Jul 07
0
Question of uploading large file using carrierwave, uploadify and nginx upload module
Hey ROR users, I have a small experimental web app which is for uploading files. The web app uses carrierwave, uploadify. It works fine on small size files. However, it can not handle large size files (>1G) efficiently. Then I decided using nginx upload module, it worked well on small size files after modification of codes,. But It fails on uploading large files (>1G) because of http error
2013 Feb 26
1
Store files with carrierwave to remote server (may be via ssh/scp)?
Im setting up production environment where all static content separated from web application server. I need to store all carrierwave powered content to another server, but by default carrierwave include only :file (for local files) and :fog (for cloud CDN) store support. How I can do that? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2011 Sep 01
0
Encrypt/Decrypt files using Carrierwave to store in S3
Hi, I need to be able to encrypt files before storing them on S3, and then decrypt them when accessing them. The files will be images, documents, PDF, etc. I am using Carrierwave to handle the file upload and storage. I am storing them in Amazon S3. Has anyone done this, or have any ideas how this would be achieved? Thanks. -- You received this message because you are subscribed to the
2010 Aug 06
4
Paperclip not finding imagemagick on prod, works on dev
Hi, I am using paperclip to attach documents to my models. it works perfectly on my dev machine, but on the server I get a CommandNotFoundError. On my server if I ./script/console I can run imagemagick through system("convert") and it works, so why can''t paperclip find it? Thanks for your ideas PS: the paperclip google group isn''t getting much answers so I am
2011 Jul 24
4
Downloading files not stored in database?
Hello list, I am trying to add functionality to my application that will allow users to download files that are not stored in a database. All the examples I have found find the file by ID. which I can not do. Here is my code from the view: <h1>Browse files for download</h1> <% form_for(:download, :url=>{ :controller=>"download",
2012 Aug 29
2
Carrierwave Direct and additional form elements
I just switched a project from Dragonfly to Carrierwave, specifically to see if I could take advantage of Carrierwave Direct, which uploads large files directly to S3 or another cloud storage. I was able to make a form containing a single file field that would upload to S3. What I could not work out was how to upload the file to S3 AND other form elements to the model that had Carrierwave
2011 Dec 21
0
Cannot upload using CKEditor and Carrierwave, Rails 3.1
Uploading files won''t work properly for me in CKEditor. The file does get saved but looking at the parameters there is no authenticity token sent by CKeditor. So I get a "Can''t verify CSRF authenticity" warning, which resets the session, then I can''t update the post. The token is set in the form but CKEditor doesn''t seem to send it for picture or file
2013 Sep 19
0
Performance problem generating URL for thousands of images, due to hitting HDD for each one
Hi, I have a model where I''m using Carrierwave to let users upload their avatars. I have one version for the avatar, cropped to a square called "cropped". class User mount_uploader :avatar, AvatarUploader end class AvatarUploader < ImageUploader version :cropped do process :crop end end In one of my pages, where I''m listing a few thousand users,
2011 Sep 08
10
Image upload with progress bar
Hello there, I try already third day to find a way, how to improve my upload about progress bar. I use for upload of images the paperclip gem and in my app jQuery library. Could anyone give me, please, any help or tip, how to do? I tried to search, read a discussions, but I still don''t know, how to do... So, thank you so much for every advice. -- Posted via
2011 May 22
1
How do you crop an image with carrierwave 'after the fact' in rails?
What I''d like to do is upload an image, then take the user to a new page where I will use Jcrop to let the user select the part of the image they want to crop, and then store that image. Essentially, I want to make it a 2-stage process. I know how to do the javascript part, and I understand the basic flow of how to create this functionality. However, I am not aware of the carrierwave
2011 Jul 18
0
rails_admin & carrierwave
Hi to all.... Please help me =( I use rails_admin and I need to upload files with the help of it. I found carrierwave for it and installed it with the help of https://gist.github.com/884835. But It doesn''t work =( when i login in rails_admit? i see default text field instead field for choose a file, but this text field without CSS styles of rails_admin. I think, that my views, which i
2011 Feb 16
3
Memory Leak
I have a small app that is handling large(ish) file uploads, around 150-200Mb, it''s been running for about a year now. I''m running Rails 2.3.10, Thin 1.2.7, and Paperclip 2.3.5 Last week I went through and updated Rails from 2.3.5 to 2.3.10 and started to use the nginx upload module (http://www.grid.net.ru/nginx/ upload.en.html) to handle the uploading of the file, then pass