Skip to content

Commit 7c6a866

Browse files
authored
Merge pull request #786 from Clasherzz/gsoc_proposal_K_Govind
Update Application_K_Govind_API_Support.md
2 parents ea95f71 + 03f63fe commit 7c6a866

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

doc/proposals/2025/gsoc/Application_K_Govind_API_Support.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ Architecture is as shown below:
134134
```
135135

136136

137-
- **Technologies & Tools:** The approach uses the package web_socket_channel(^3.0.1)
137+
- **Technologies & Tools:** The approach uses the package web_socket_channel(^3.0.1).(https://fluttergems.dev/packages/web_socket_channel/).Supports all platforms.
138138
- **Expected Outcomes:** A clean ui with maximum smoothness satisfying above mentioned solutions.
139139
- **Linked PR for POC:** https://github.com/foss42/apidash/pull/555 (The PR is in no way the final product but simply to show the code structure and my approach)
140140
![Alt text](./images/websocket(1).png)
@@ -337,11 +337,13 @@ Service level change:- We would make key value pairs as string . This is encoded
337337
### File support(Issue #352):-
338338
Sending Files through octect-stream content type.
339339

340-
UI Changes: Make a combination of drag and droppable and select file ui as a new tab. Make a progression bar to show the uploading progress.
340+
UI Changes: Make a combination of drag and droppable and select file ui as a new tab. Make a progression bar to show the conversion to bytes progress.
341+
To acheive the droppable interface we can use desktop_drop(https://fluttergems.dev/packages/desktop_drop/)(supports windows,linux,macos,android,web).This works along with already existing file_selector.But it doesn't support IOS.
342+
To support IOS we would have to use super_drag_and_drop(https://fluttergems.dev/packages/super_drag_and_drop/) . Currently I have only been able to test the feauture in windows ,android using desktop_drop.
341343

342344
Model changes: Add another content type application/octet-stream .
343345

344-
Service changes:We would first stream the file as bytes , add it into the body .
346+
Service changes:We pick the file using file_selector. And adds the filepath into the body. Then stream the content to bytes whenever we need to send the file. Showing and handling error appropriately if file is not present or corrupted.
345347

346348
Put Content-Type header as application/octet-stream and send the request.
347349

0 commit comments

Comments
 (0)