New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prevent AIA files from being uploaded to projects as media assets #173
Comments
NIce point. People also upload PDFs and DOC files. We ought to trap for == Hal Abelson On Mon, Dec 8, 2014 at 5:28 PM, Mark Sherman notifications@github.com
|
It actually might be useful to upload a PDF in some circumstances. When I found DOC and PDF files in the system, it was usually the result of someone unziping a project file into a directory with other stuff and then re-zipping it up and the other stuff gets included :-) -Jeff |
P.S. I can easily put in a check for files ending in ".aia" and generate an appropriate error. |
If Jeff makes the error, I'll write the explanation page to go with it.
|
@jisqyv |
@jisqyv have just removed you from this one; marking as |
Hi, my name is Varun! I'm a new UROP student with the App Inventor team. |
I have added an appropriate condition to check if the file being uploaded is an aia file in the FileUploadWizard class. I have also added an appropriate error message in OdeMessages class and will soon sent a pull request, thanks. |
I'll check it out this week, @wadleo (though I have no pull power, it seems right that I give it a test!) |
thanks @marksherman, waiting for your reply. |
Hello @bxie, |
Hi @wadleo my fixes are on the bytesize branch of my fork at https://github.com/varunm22/appinventor-sources/tree/bytesize. In addition to adding the .aia fix, I've replaced the window.alerts that show up during file upload errors with dialog boxes for greater consistency. |
Hi @varunm22, thanks for the feedback. |
Hi @wadleo, sorry for the confusion, and please let me know if you have any more questions! |
Closed by #747 |
It is possible for beginners who are trying to load a template AIA source file to upload them into an existing project as media assets. Beginners may be susceptible to this mistake if they had recently learned how to upload media assets, which is commonly a 1st or 2nd session event.
This mistake was observed during a teacher training.
I propose a feature that checks media uploads. If the user attempts to upload the AIA, refuse, and guide the user towards a web page describing how to use AIA files.
The text was updated successfully, but these errors were encountered: