Questions tagged [file-system-storage]
19 questions
137
votes
6 answers
Database vs File system storage
Database ultimately stores the data in files, whereas File system also stores the data in files. In this case what is the difference between DB and File System. Is it in the way it is retrieved or anything else?

Sriram
- 1,558
- 2
- 12
- 14
5
votes
1 answer
Is there any way to set up an alert on low disk space for Azure App Service
I'm running an Azure App Service on a Standard App Service Plan which allows usage of max 50 GB of file storage. The application uses quite a lot of disk space for image cache. Currently the consumption level lies at around 15 GB but if cache…

Ondska
- 133
- 3
- 10
2
votes
1 answer
How to upload an Image File modified by OpenCV using FileSystemStorage in Django?
I am taking an uploaded image from the user and then sending it to a YOLO model which then returns me an image.
I want to store that returned image in my Local Directory and then display it on the user interface.
This is the Code of views.py that…

Awais Shahid
- 117
- 4
- 15
1
vote
2 answers
Trigger my function when any file is saved in django
I would like to tap on file save event inside my Django application
I have dockerized Django application. When I press save in any file, the server is restarted and docker image rebuild.
I would like similar functionality: Whenever I press save in…

Marko Zadravec
- 8,298
- 10
- 55
- 97
1
vote
3 answers
Django FileSystemStorage.url is wrong
Code:
company = Company.objects.get(pk=pk)
if request.POST:
company_name = request.POST['company_name']
company_logo = request.FILES['company_logo']
fs =…

dcolumbus
- 9,596
- 26
- 100
- 165
1
vote
1 answer
FileSystemStorage.delete() doesn't delete captured files on ALL android devices?
According to this https://github.com/codenameone/codenameone/issues/411 (April 2015) it is the expected behaviour that the captured image are not deleted via FileSystemStorage.delete() in Android 4.
That's what I get with my 4.4 device (CN1 version…

HelloWorld
- 2,275
- 18
- 29
1
vote
1 answer
codename one where put sd card files in debug progress
I am trying to read a file located in my phone with the FileSystemStorage class:
is = FileSystemStorage.getInstance().openInputStream(updateFilePath);
But i don't know where to put this updateFilePath in my local machine for development, so for…

EliuX
- 11,389
- 6
- 45
- 40
1
vote
1 answer
Getting the value of an image field in Plone 3.x with FSS
I'm trying to migrate an old Plone 3.3 site that uses
FileSystemStorage using Mikko's Simple JSON export script.
Everything runs fine, except for the absence of a value on the image fields, which are returned as empty strings (''):
[
...
{
…

hvelarde
- 2,875
- 14
- 34
0
votes
1 answer
Overwrite file if the name is same in Django
How do I overwrite the file if the name of the new file is similar to the one already uploaded. If I can take file.name and delete any file present with this name and then store this file that also works for any . Any method would work please…

Joshua
- 5
- 2
0
votes
1 answer
how to change folder location to save file - DJANGO FileSystemStorage
so i want when i upload a file, the file will go to media/mp3 not media/txt. how to change save file location?
views.py:
def homepage(request):
if request.method == "POST":
form = Audio_store(request.POST, request.FILES)
if…

Monana
- 43
- 1
- 5
0
votes
1 answer
How to generate Strided IO access patterns using FIO?
I am working on some experiments to observe the performance of storage devices. Specifically, I am looking for observing the performance under strided IO access patterns. Is there any way to do generate strided IO access pattern with FIO?

user3156262
- 346
- 2
- 13
0
votes
1 answer
Django - Alternative for FileSystemStorage in Production Environment
I am fairly new to django and I want to deploy my app. I have used FileSystemStorage to store my files temporarily in a Media folder and deleting them afterwards, in my django app however I've also read that it should not be used in a production…

inquisitive
- 135
- 2
- 11
0
votes
1 answer
"Media" folder not being created with Django's FileSystemStorage. Files don't get saved if made manually either
So, I always test out new things in a separate project and the example that I used to test this out worked. However, trying to integrate the same in my project doesn't give me the results I need. I've spent close to 4 hours on this now and nothing…

Bilal Hakim
- 85
- 7
0
votes
1 answer
Django custom FileSystemStorage works in development server but not in Apache server
I have a customized FileSystemStorage class to allow overwriting existent uploaded files in a subfolder of MEDIA_ROOT when files are uploaded via the admin change interface. However, it works fine in Django development server but in Apache no file…

user2641103
- 704
- 9
- 25
0
votes
1 answer
Attribute error: 'str' object has no attribute 'read' python-django
So the scenario here is, I have a endpoint that will take a zipfile, unzip it and save it to media dir for now. Here's the whole code for that
def get_filenames(path_for_zip):
with ZipFile(path_for_zip, 'r') as zip:
return…

Zeed Tanue
- 91
- 5
- 24