I have a problem after upload image from URL:
Preview thumbnail doesn't work
Direct Link doesn't work, I get Forbidden error
But image file exists in my storage...
Upload from URL was set to permission 0600 and upload image from file is set 0644, it's a problem about permissions, I can resolve this with default 0644 permissions after upload?
Thank you everyone!
Upload from file wotks well with default permissions 0644
Related
I have a directory upload issue in Prepros 6.1.1, with SFTP only.
This may be related to that question: Folders uploading in Prepros
The file upload is OK, but Prepros will create directories in the wrong path!
Example
I want to upload new-directory/new-file to /home/myuser/www/:
If new-directory exists on the server ; no problem, the file is uploaded in there.
If I upload a new file in a new directory ;
Prepros will create the directory in /home/myuser/home/myuser/www/new-directory,
then try to upload the file to /home/myuser/www/new-directory which doesn't exists…
Does anyone have found a workaround?
How is your FTP config?
Open FTP Settings and on Remote Path yout insert all the path to the directory you want. For example:
I want to upload a file to my test folder, then, on the remote path field, i will insert
/public_html/test/
This way all the files will be uploaded to this directory
I am downloading the file from the server in ionic via "Cordova-file-transfer" plugin. It works fine but when I kill app when downloading is in progress, then I reopen I start downloading, sometimes it gives "Could not create path to save downloaded file: You don’t have permission to save the file “folderName” in the folder “Documents”." error.
It's random issue.
I found the cause of the error. It has occurred when I update my app when any of the downloads are in the progress.
The solution for it. Create a file(mp3 file) again when the app restarts.
i have an issue that Jenkins can't file location after build the apk. Even though i already set the file location in the right place see the picture. Can you help me?
write full path your .apk
this error is occured it can't found your file
This is how I encountered the problem:
Uploaded files to S3
Tried to download the file, it works ok
Migrated the files in that bucket to another bucket (under the same AWS account)
Tried to download the file again, it works, the file is downloaded, but the name of the file is just "file", no extension.
If I change the file name to add the extension, it still opens. So the content of the file is ok, but the file name is lost after migrating to another bucket.
Has anybody met this problem before? Or know any potential causes of this?
Thanks
I figured this out.
It is because the metadata was lost during the migration.
I was moving files from one bucket to another by downloading them to local machine first.
What I should have done is :
aws s3 cp s3://b1 s3://b2 --recursive
By default when I upload new images, the folder created have 777
permissions
Is there a way to restrict permissions on the new folders?
Thanks
Other way you can do this by changing in the paperclip plugin itself.
Change the permission as you want in the below file of paperclip plugin
/lib/paperclip/storage.rb