title: How to test a dropbox upload in Java with Spring Boot?
body: <p>I have the following code snippet:</p>
  
  <pre><code>@RestController
  @RequestMapping("/dropbox")
  public class DropboxController {
  
      private static final Logger logger = LoggerFactory.getLogger(DropboxController.class);
  
      @Autowired
      DropboxService dropboxService;
  
      @Autowired
      DbxClientV2 dropboxClient;
  
      @PostMapping("/upload")
      public String handleFileUplad(@RequestParam("file") MultipartFile file, @RequestParam("filePath") String filePath) throws Exception {
          dropboxService.uploadFile(file, filePath);
          return "You successfully uploaded " + filePath + "!!";
      }
  </code></pre>
  
  <p>Now I want to test whether the upload works. How can I do this? How would be the syntax when I try it with curl?</p>