In order for those not so fluid in HTML, CSS and JavaScript to enjoy Erel's magnificent HTTPServer library,
here is a further developed example. The major additions being:
1. HTML5 coded templates
2. Embeds Base64 encoded icons in CSS
3. Prompts a confirmation before deleting a file
4. Deletes empty directories
5. Makes directories
6. Checks whether a file to upload was selected.
7. Adds further 'ContentTypes'
8. User can change ports
9. Enabling/disabling buttons as appropriate
10. Wait for connection when started offline
Access to 'Local Network' is not realized as yet. This would require the smb:// protocol.
Note that you cannot manipulate files in external cards with Android 4.4x devices.
This is certainly not a complete application and leaves much room for enhancement.
Anyway, have fun!
Be sure to download the HTTP Server library:
https://www.b4x.com/android/forum/t...er-in-your-android-application.25984/#content
here is a further developed example. The major additions being:
1. HTML5 coded templates
2. Embeds Base64 encoded icons in CSS
3. Prompts a confirmation before deleting a file
4. Deletes empty directories
5. Makes directories
6. Checks whether a file to upload was selected.
7. Adds further 'ContentTypes'
8. User can change ports
9. Enabling/disabling buttons as appropriate
10. Wait for connection when started offline
Access to 'Local Network' is not realized as yet. This would require the smb:// protocol.
Note that you cannot manipulate files in external cards with Android 4.4x devices.
This is certainly not a complete application and leaves much room for enhancement.
Anyway, have fun!
Be sure to download the HTTP Server library:
https://www.b4x.com/android/forum/t...er-in-your-android-application.25984/#content