Skip to content
This repository has been archived by the owner on Jun 17, 2023. It is now read-only.

Install Plugin browse local file system #37

Open
limetech opened this issue Dec 10, 2014 · 8 comments
Open

Install Plugin browse local file system #37

limetech opened this issue Dec 10, 2014 · 8 comments
Labels

Comments

@limetech
Copy link
Owner

On the Install Plugin page (tab) there are two ways to select the plg file: by pasting a URL into a text box and by navigating the server file system.

It seems to me there is no value in navigating the server file system. Instead it should be a control that lets you navigate the file system of the computer running the browser. For example, it should let me navigate to the 'Download' folder on my local windows PC, select a plg file, and then upload that to the /boot/config/plugins folder on the server. Make sense?

@jonpanozzo
Copy link
Collaborator

Agreed on this and Eric and I are working on a file upload control that's a
little more advanced than the standard HTML input type of "file" that will
provide a single button to click to browse the local filesystem of the
client device, and when a file is selected and OK is clicked, the file is
immediately uploaded to the system (no additional clicks required).
On Dec 9, 2014 8:30 PM, "tom mortensen" [email protected] wrote:

On the Install Plugin page (tab) there are two ways to select the plg
file: by pasting a URL into a text box and by navigating the server file
system.

It seems to me there is no value in navigating the server file system.
Instead it should be a control that lets you navigate the file system of
the computer running the browser. For example, it should let me navigate to
the 'Download' folder on my local windows PC, select a plg file, and then
upload that to the /boot/config/plugins folder on the server. Make sense?


Reply to this email directly or view it on GitHub
#37.

@bergware
Copy link
Collaborator

Yes, this makes sense, certainly in combination with a single click system.

Right now , I create a separate folder on the server to store the plg files, but most users would want to do this on their own PC.

One pitfall, editing a PLG file on a windows machine with the wrong editor (read notepad) destroys the linux file format.

@jonpanozzo
Copy link
Collaborator

Serious question: other than plugin authors who should know better to use a good editor like notepad++ if on Windows, who is editing PLG files by hand before installation?

@eschultz
Copy link
Collaborator

I guess we can always run the 'fromdos' command on the uploaded plg to make
sure the line endings are Unix.

@limetech
Copy link
Owner Author

One pitfall, editing a PLG file on a windows machine with the wrong editor (read notepad) destroys the linux file format.

Has anyone tried it? The plugin script uses simplexml_load_file() and I bet it handles either type of line endings correctly.

I guess we can always run the 'fromdos' command on the uploaded plg to make sure the line endings are Unix.

If simplexml_load_file() does not handle line endings correctly, this should be fixed in plugin script because the flash share is exported and someone on a windows system could navigate the directories on the share and edit a file directly.

@jonpanozzo
Copy link
Collaborator

Not recently. I will give it a go here in a sec to see what happens…

Sent from Windows Mail

From: tom mortensen
Sent: ‎Wednesday‎, ‎December‎ ‎10‎, ‎2014 ‎12‎:‎11‎ ‎PM
To: limetech/dynamix
Cc: [email protected]

One pitfall, editing a PLG file on a windows machine with the wrong editor (read notepad) destroys the linux file format.

Has anyone tried it? The plugin script uses simplexml_load_file() and I bet it handles either type of line endings correctly.

I guess we can always run the 'fromdos' command on the uploaded plg to make sure the line endings are Unix.

If simplexml_load_file() does not handle line endings correctly, this should be fixed in plugin script because the flash share is exported and someone on a windows system could navigate the directories on the share and edit a file directly.


Reply to this email directly or view it on GitHub.

@bergware
Copy link
Collaborator

I did a quick test, simpleXML takes both formats unix and windows. No real issue here.

@jonpanozzo
Copy link
Collaborator

Nice! Saved me the test! Thanks Ronald!

Sent from Windows Mail

From: bergware
Sent: ‎Wednesday‎, ‎December‎ ‎10‎, ‎2014 ‎1‎:‎03‎ ‎PM
To: limetech/dynamix
Cc: [email protected]

I did a quick test, simpleXML takes both formats unix and windows. No real issue here.


Reply to this email directly or view it on GitHub.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants