user20072008
user20072008

Reputation: 379

Google app engine Image upload removes previous files

I am fairly new to Google App Engine. When I keep files in images folder and run bat file, it uploads images properly but when I remove those images and put new images to upload, it removes previous images.

My app.yaml looks like this

application: testcdn
version: 1
runtime: python27
api_version: 1
threadsafe: true

default_expiration: "1d 1h"

handlers:
- url: /css
  static_dir: css

- url: /images
  static_dir: images

- url: /js
  static_dir: js

- url: /.*
  static_files: index.html
  upload: index.html

Also when 2 developers try to upload images to the same cdn store with different google accounts, it removes images previously uploaded by other developer.

Please suggest.

Upvotes: 0

Views: 46

Answers (1)

GAEfan
GAEfan

Reputation: 11360

Your local files mirror your deployed files. If you remove files locally, then deploy, the remote files will be deleted. You are not just defining the files to upload, but the files to mirror remotely.

I am not sure about your 2nd comment. Do the files have the same filenames? You will have to provide the upload code for diagnosis.

Upvotes: 1

Related Questions