Shravan Pottala

Shravan Pottala

  • NA
  • 19
  • 917

Please help me to Upload a pdf document or url link to firebase

Oct 31 2020 7:21 AM
Please help me to Upload a pdf document or url link to firebase in flutter.
 
I am able to follow "https://www.c-sharpcorner.com/article/upload-image-file-to-firebase-storage-using-flutter/"
 
and upload image file to firebase in flutter.
 
But How to upload a pdf documkent or url link to firebase in flutter. Please explain me in detail.

I am trying with file_picker but getting errors like
 
Launching lib\main.dart on Redmi Note 4 in release mode...
Running Gradle task 'assembleRelease'...
lib/main.dart:54:30: Error: No named parameter with the name 'fileExtension'.
type: _pickType, fileExtension: _extension);
^^^^^^^^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/file_picker-1.13.3/lib/file_picker.dart:57:38: Context: Found this candidate, but the arguments don't match.
static Future> getMultiFilePath({
^^^^^^^^^^^^^^^^
lib/main.dart:57:30: Error: No named parameter with the name 'fileExtension'.
type: _pickType, fileExtension: _extension);
^^^^^^^^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/file_picker-1.13.3/lib/file_picker.dart:29:25: Context: Found this candidate, but the arguments don't match.
static Future getFilePath({
^^^^^^^^^^^
lib/main.dart:98:27: Error: Getter not found: 'AUDIO'.
value: FileType.AUDIO,
^^^^^
lib/main.dart:102:27: Error: Getter not found: 'IMAGE'.
value: FileType.IMAGE,
^^^^^
lib/main.dart:106:27: Error: Getter not found: 'VIDEO'.
value: FileType.VIDEO,
^^^^^
lib/main.dart:110:27: Error: Getter not found: 'ANY'.
value: FileType.ANY,
^^^
 
I have followed  https://www.youtube.com/watch?v=BxGrECJ_tUo and   
https://www.c-sharpcorner.com/article/upload-image-file-to-firebase-storage-using-flutter
Please Clarify.