file-storage

should user avatars be saved in a private directory?

拜拜、爱过 提交于 2019-12-13 04:46:57
问题 I am building a community site and i'm currently writing a script that generates thumbnails and stores them on our filesystem. Should I be storing the avatars in a private directory? or is it OK for that type of file to be in a public assets directory like a CDN? why or why not? 回答1: After searching around and looking at other sites. Google Plus in particular does not save their avatars in a private directory. In fact, their avatars are accessed from a public CDN and are served up and mixed

Guidance on Android file storage

我只是一个虾纸丫 提交于 2019-12-12 20:23:18
问题 I need to write an Android app that would download sounds from the internet for further use. Where should i store these sounds? Is Sqlite an option? And what's the best way to load and play these files? Thanks in advance. 回答1: I would recommend putting the files on the SD Card, if one exists. One thing to note, though, is that you should never hard code a path to the SD card. You would likely want to do something along the lines of: try { //Create handle to SD card drectory exportDirectory =

File Storeage Using Kinvey Rest api

╄→гoц情女王★ 提交于 2019-12-11 04:21:53
问题 I try to upload image using KINVEY REST api (http://devcenter.kinvey.com/rest/guides/files#Uploading) but i failed to upload file in file storage. please tell me how to send image file-name/file-data in get/put request and which header should i use. also refer any link which help me. thanks in advance. 回答1: I'm an engineer at Kinvey. To use the REST API, you need to first get an API URL to upload by making a GET request to: /blob/:appKey/upload-loc/:fileName That will return a response with

Programmatically storing image files in JBoss [closed]

给你一囗甜甜゛ 提交于 2019-12-11 01:43:52
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 years ago . I am developing a Java EE application for JBoss 6.1.0 which needs to programmatically store image files on disk. How/where should I store image files on a JBoss server? 回答1: You can use the /standalone/data folder for this, whose path is available via the jboss.server.data.dir

Cannot access Windows azure file storage document

为君一笑 提交于 2019-12-10 12:54:57
问题 I have created a file storage in Windows azure and uploaded some documents. This is what my path to my file looks like https://mySite.file.core.windows.net/notes/txt.pdf When I try to access the a file from my storage i get this error: 回答1: This is intended behavior. Please note that there's no anonymous access allowed for files stored in file storage. The access needs to be authorized. Since you're trying to access the resource without being authorized, you're getting this error. One way of

Laravel File Storage delete all files in directory

此生再无相见时 提交于 2019-12-10 01:57:02
问题 Is there a way to delete all files in specific directory. I'm trying to clear all my files in my created folder backgrounds in storage\app\backgrounds but in docs seems no method for delete all. Storage::delete('backgrounds\*.jpg'); 回答1: I don't think if this is the best way to solve this. But I solved mine calling use Illuminate\Filesystem\Filesystem; Then initiate new instance $file = new Filesystem; $file->cleanDirectory('storage/app/backgrounds'); 回答2: use Illuminate\Support\Facades

How do we track azure file storage folder is updated or not?

╄→гoц情女王★ 提交于 2019-12-07 18:25:19
问题 I have azure file storage with other folders inside it. I want to check or track when that folder is last updated ? I have done a simple console application to get all files from that location - // Get list of all files/directories on the file share CloudStorageAccount cloudStorageAccount = CloudStorageAccount.Parse(ConfigurationManager.AppSettings["storageConnectionString"]); CloudFileClient fileClient = cloudStorageAccount.CreateCloudFileClient(); CloudFileShare fileShare = fileClient

How do we track azure file storage folder is updated or not?

江枫思渺然 提交于 2019-12-06 07:17:30
I have azure file storage with other folders inside it. I want to check or track when that folder is last updated ? I have done a simple console application to get all files from that location - // Get list of all files/directories on the file share CloudStorageAccount cloudStorageAccount = CloudStorageAccount.Parse(ConfigurationManager.AppSettings["storageConnectionString"]); CloudFileClient fileClient = cloudStorageAccount.CreateCloudFileClient(); CloudFileShare fileShare = fileClient.GetShareReference(ConfigurationManager.AppSettings["shareName"]); var sourceName = fileShare

Copy & rename a file to the same directory without deleting the original file [duplicate]

陌路散爱 提交于 2019-12-05 11:11:06
问题 This question already has an answer here : Closed 7 years ago . Possible Duplicate: Clone + Rename file with PHP This should be pretty easy. I wan't to copy & rename images that already exist on the server while still retaining the original image . Here's the original image location: images/ folder/ one.jpg This is what I want: images/ folder/ one.jpg one_thumb.jpg How can I achieve this? You can see I'm not just simply renaming an existing file / image. I want to copy it and rename it to the

Copy & rename a file to the same directory without deleting the original file [duplicate]

被刻印的时光 ゝ 提交于 2019-12-03 23:13:17
This question already has an answer here : Closed 7 years ago . Possible Duplicate: Clone + Rename file with PHP This should be pretty easy. I wan't to copy & rename images that already exist on the server while still retaining the original image . Here's the original image location: images/ folder/ one.jpg This is what I want: images/ folder/ one.jpg one_thumb.jpg How can I achieve this? You can see I'm not just simply renaming an existing file / image. I want to copy it and rename it to the same directory. Just use the copy method: http://php.net/manual/en/function.copy.php Ex: <?php $file =