You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into a similar problem. For your config.ftp_folder try and absolute path like
"/home/deploy/Desktop/public"
For your uploader file try
"images/users/avatar"
In this scenario the full path of where the files will get written is
/home/deploy/Desktop/public/images/users/avatar/some_file.jpg
I set my vsftp up with this tutorial
but they failed to mention that this config configuration is read only
to give your user write permissions adjust the vsftpd.conf file
vi /etc/vsftpd.conf
write_enabled=YES
The other thing I noticed is that the return path for carrierwave didn't have the proper ip address, so you may need to create your own link's with your objects in mind and what ip the file was attached to. I plan on making an additional field in my users table to add not only the avatar name but the ip in which the image resides on. Then have another server running to make images publically available, that way I can split the application and the data/files for increased horizontal scalability. msg me if you have any other questions.
Hi , I'm setting up FTP server on a Ubuntu 16.04 in Virtual box with vsftpd.
I can use Windows Explorer to access to the FTP folder, as well as from Ruby code.
But I can't get it done with your Gem. whenever I try to upload a new file, it always returns error in the title.
Here's my CarrierWave config
Thanks for any help :(
The text was updated successfully, but these errors were encountered: