Ok, that did it. I just forget the collectstatic command! But it's OK now. Thanks for the help!
On Thu, Jan 28, 2016 at 8:34 AM, Adam Cox <[email protected]> wrote: > Hi Joel, I just tried this to allow .dll files, and it worked fine. So, > three things to make sure of, and your problem should be solved. > > 1) There are actually two places that files are uploaded, so two different > places to add the file extensions that you want to accommodate: > file-upload.js and related-files.js. The latter is used if you are adding > a file to a heritage resource, and the former is used for information > resource file uploads. > 2) Be sure to do a hard reload (empty browser refresh option) whenever you > modify a .js file. > 3) If you are serving through apache and have set the STATIC_ROOT setting > you will have to run python manage.py collectstatic for any js or css file > changes to take effect. > > Hope that helps! > Adam > > > On Tuesday, January 26, 2016 at 6:29:25 PM UTC-6, Joel Aldor wrote: >> >> Hi Adam, >> >> I did that, added the file types, and it still doesn't work. >> >> One thing I noticed though, is that when the file dialog shows up, only >> the accepted file types show up on my directory because the default filter >> is set to "Custom Files". If I select to "All Files", my video file shows >> up. Then I select the video file and it will display that (X) icon. I have >> a hunch something else needs to be edited somehow. >> >> Regards, >> >> Joel >> >> On Wednesday, January 27, 2016 at 12:14:01 AM UTC+8, Adam Cox wrote: >>> >>> Hi Joel, just bring the views/forms/file-upload.js file into your app, >>> and you'll see where you can add more acceptable file types. You can see >>> how I did it here: >>> https://github.com/mradamcox/crip/blob/master/crip/media/js/views/forms/file-upload.js >>> >>> >>> On Tuesday, January 26, 2016 at 2:46:00 AM UTC-6, Joel Aldor wrote: >>>> >>>> Hi, >>>> >>>> We have a number of video files that we want to upload as an >>>> information resource that is related to a historic resource/historic event. >>>> But everytime I select the video file, it always display the X icon saying >>>> "You can't upload files of this type.". How do you enable other file >>>> formats to be accepted for file upload? >>>> >>>> Hope I could get an answer ASAP as we are going to train some local >>>> government officials on using Arches this weekend. Thank you! >>>> >>>> regards, >>>> >>>> Joel >>>> >>> -- > -- To post, send email to [email protected]. To unsubscribe, > send email to [email protected]. For more > information, visit https://groups.google.com/d/forum/archesproject?hl=en > --- > You received this message because you are subscribed to a topic in the > Google Groups "Arches Project" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/archesproject/lHDgpn-msAo/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- -- To post, send email to [email protected]. To unsubscribe, send email to [email protected]. For more information, visit https://groups.google.com/d/forum/archesproject?hl=en --- You received this message because you are subscribed to the Google Groups "Arches Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
