I want to upload photos from my site after zipping. I am using rubyZip gem but cannot encrypt deleted files. The following is the scenario:
I am trying to archive content from a server. This is something like this.
http://myApplication.s3.amazonaws.com/xxxxxxxx/image/image1.jpeg ,
So, in "zipfile.add (attachment.document_file_name, attachment.document.url)", I assigned the following values:
document_file_name = image1.jpeg / image2.jpeg / image3.jpeg document.url = http://myApplication.s3.amazonaws.com/xxxxxxxx/image
Now I get the following error:
There is no such file or directory - myApplication.s3.amazonaws.com/xxxxxxxx/image
This stone works fine if I archived files from the local file system (for example: / home / user / images), but not for deleted files.
Am I doing something wrong? Can anybody help me? Or any other stone that can do this?
Thanks, -Tahniyat
source share