Skip to content

Commit 8dcd64b

Browse files
authored
Update upload.js
1 parent cabb8fe commit 8dcd64b

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

upload.js

-21
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,8 @@ Depnding on which the user clicks, the appropriate action will take place.
66
77
Note that getPicturefromCamera() may crash the app in some phones due to memory issues.
88
This code does not fix that issue, do well to send a pull request.
9-
10-
11-
12-
*/
13-
14-
15-
/*
16-
Login to your firebase console, click on STORAGE, then click on RULES
17-
Replace whatever default code you have their with the one below:
18-
19-
service firebase.storage {
20-
match /b/project-162854887831486239.appspot.com/o {
21-
match /{userId}/{timestamp}/{fileName} {
22-
allow write: if request.auth.uid == userId;
23-
allow read;
24-
}
25-
}
26-
}
27-
289
*/
2910

30-
31-
3211
function getPictureFromGallery(){
3312

3413
navigator.camera.getPicture(onSuccess, onFail, {

0 commit comments

Comments
 (0)