jQuery-FileUpload | Nette UploadControl rozšířené o blueimp/jQuery | File Upload library
kandi X-RAY | jQuery-FileUpload Summary
kandi X-RAY | jQuery-FileUpload Summary
Nette UploadControl rozšířené o blueimp/jQuery FileUpload.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of jQuery-FileUpload
jQuery-FileUpload Key Features
jQuery-FileUpload Examples and Code Snippets
Community Discussions
Trending Discussions on jQuery-FileUpload
QUESTION
I have 2 apps I have re-written from older versions of Rails (3.2 and 4.2.1) to Rails v6.1.4.1 and they both use the s3_direct_upload gem.
On Both apps I do not get any errors in the Webdev console or in the Rails console or in the log or ANYPLACE I can find. The buckets are displaying just fine in the case of Both Apps.
I checked the CORS Setup and it is fine. Both of these apps are currently running on Heroku with the code the same way it is now but are working.
Does anyone know if the s3_direct_upload gem actually works with Rails 6?
I get the file select window, I choose the filename, it shows the filename but instead of it starting the upload and showing the progress bar it just acts as if I did nothing at that point. No errors no nothing anyplace I can find. When I have the original app side by side at that point I should see a quick progress bar come up and then go away, the page refreshes and shows the new file. IN the 2 Apps I have re-written, it never gets past the file select and showing the file name of what I have selected. I will show the general files so at least that can be seen:
So that is question 1, does the s3_direct_upload gem work in Rails 6?
Here are the basic files that are required:
s3_direct_upload.rb
...ANSWER
Answered 2021-Nov-10 at 20:15I can confirm if you pull the latest version of the s3_direct_upload gem it does in fact properly upload to Amazon S3 using Rails 6, aws-sdk-v1 and Paperclip.
To do this you have to pull the s3_direct_upload as a plugin instead of a GEM and you can do this by putting this in your gemfile:
QUESTION
I have re-written 2 applications that uses older versions of Rails v3.2 and 4.2 to current Rails 6.1.4.1 In both applications cases I have everything working properly EXCEPT for the picture upload. At first I couldn't get the s3_direct_upload to work properly. Now it appears to be working, I get the progress bars starting but I get this darn POST 403 (Forbidden) error (it has the URL in the middle of the error). The s3_direct_upload gem basically just packages up the jQuery-file-upload gem to make it easier to implement after looking at its source code.
https://github.com/waynehoover/s3_direct_upload
What is strange in my case is I know it isn't a CORS issues because I am using the very same buckets, keys and everything that are CURRENTLY STILL WORKING in the original versions of these applications that still work on Heroku. Code is virtually the same the only change is the new version of Rails. BOTH give me the exact same error. IN both apps I can view pictures just fine. IT can access the buckets with the same keys ID and everything else.
I then tried and made a sample app that uses the jQuery-file-upload gem (separate from the s3_direct_upload gem) as I wanted to verify if it was the s3_direct_upload gem causing the issue OR if it is the jQuery-file-upload gem that is causing the issues.
https://github.com/railscasts/383-uploading-to-amazon-s3/tree/master/gallery-jquery-fileupload
I made a Rails 6 version of this app and got it all working and to my horror, it is giving me the EXACT SAME ISSUE, POST 403 (Forbidden) error.
I figured out how to enable the colsole.log in the JavaScript portion of the app and got it dump the error.
Here is the full error from the console. (I put MYBUCKET in caps where my bucket name would be)
...ANSWER
Answered 2021-Nov-10 at 17:46The problem on this turned out to be in the way s3_direct_upload was creating the upload FORM. It was adding a part to the form with $utf8 which apparently at some point was no longer allowed. IN the s3_direct_upload gem v0.1.7 in the /app/lib/form_helper.rb in the method def policy_data method this line had to be removed from the method:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install jQuery-FileUpload
PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page