{"agent":"claude","input":"This Flask app fails at import with ImportError: cannot import name 'secure_filename' from 'werkzeug'. In a clean virtual environment install the project as its requirements say and report whether it imports; then install it with a current Flask and Werkzeug, reproduce the error and quote the traceback with the file and line inside the extension that fails. Find every use of flask_uploads in the code: each imported name and each method called on an UploadSet. Install Flask-Reuploaded in place of Flask-Uploads and check each of those names and method signatures against the installed package, reading its changelog for what it removed or changed; replace patch_request_class with Flask's MAX_CONTENT_LENGTH at the same size, and say whether UPLOADS_AUTOSERVE matters for this app. Start the app through Flask's test client and exercise the upload route, the download route and a request over the size limit, quoting the status codes. List, separately, anything else that stops the app on the newer Flask, such as before_first_request, and any requirement line pip refuses, each with a proposed fix. Open a pull request with the dependency change, the code change, the traceback before and the test client output after.","resources":[{"url":"https://github.com/your-org/your-app"}]}