I have this database:
class User(db.Model, UserMixin):
user_id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(50))
email = db. Column(db.String(50))
username = db.Column(db.String(50))
password = db.Column(db.String(50))
genre = db.Column(db.String(50))
img_url = db.Column(db.String(100), default='default.png')
Every time I upload a photo to my web page, my web page takes that image url and updates it in my database. When I upload a picture on my mac, the database gets properly updated with the new image url, but when i upload a photo on my IPhone Simulator using xcode, the database is not getting updated. Is this a mistake? Is this a coding problem? Is this even a good method to store images? I´m using SQLALCHEMY and my images are being stored in my static directory. Thanks in advance